Function at 0x446310
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x46543d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x294
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x12]
xor edi, edi
push 1
push eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0x30], edi
call fcn.0040b2c0
lea ecx, [esp + 0x13]
push 1
push ecx
lea ecx, [esp + 0x100]
mov dword [esp + 0x2b4], edi
call fcn.0040b2c0
or eax, 0xffffffff
mov byte [esp + 0x120], 0
mov byte [esp + 0x121], 0
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov edx, dword [0x4675cc]
mov ebp, 0x4675c8
mov ebx, 0x4675c0
mov dword [esp + 0x2ac], 1
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x5c], ebx
lea esi, [esp + edx + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea eax, [esp + 0x13]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x2b0], 2
call fcn.00447cf0
lea ecx, [esp + 0x50]
mov byte [esp + 0x2ac], 3
call fcn.00447f30
push edi
lea ecx, [esp + 0x60]
mov byte [esp + 0x2b0], 4
call fcn.00447f70
mov edi, dword [esp + 0x2bc]
mov ecx, dword [esp + 0x2b8]
push edi
push ecx
mov byte [esp + 0x2b4], 5
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4464d9
lea eax, [esp + 0x3c]
lea edx, [esp + 0x5c]
neg eax
sbb eax, eax
mov byte [esp + 0x2ac], 6
and eax, edx
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea esi, [esp + 0x3c]
neg esi
sbb esi, esi
lea edx, [esp + 0x50]
and esi, edx
mov eax, dword [esi]
push eax
call fcn.0043ad89
mov eax, dword [esi + 8]
add esp, 4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
call fcn.0040b642
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x3c]
lea eax, [esp + ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x2ac], 7
call fcn.00406320
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.00406320
xor eax, eax
jmp 0x44731a
mov esi, dword [esp + 0x2c4]
test esi, esi
je 0x446685
cmp byte [esi], 0
je 0x446685
push 0
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], ebp
mov dword [esp + 0xa8], ebx
call fcn.00447f40
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2b0], 8
mov byte [esp + 0x8c], al
call fcn.0040b642
lea ecx, [esp + 0x98]
mov byte [esp + 0x2ac], 9
call fcn.00447f30
push 0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2b0], 0xa
call fcn.00447f70
lea ecx, [esp + 0x84]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x84]
mov byte [esp + 0x2ac], 0xc
test edx, edx
je 0x446597
lea eax, [esp + 0x12]
push 1
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x94]
call fcn.00426455
mov ecx, dword [esp + 0x84]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ecx + 4]
lea eax, [esp + edx + 0x84]
mov eax, dword [esp + edx + 0x84]
push eax
call edi
mov edx, dword [0x4675b8]
lea eax, [esp + 0x84]
neg eax
sbb eax, eax
lea ecx, [esp + 0x88]
and eax, ecx
push edx
push 0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2b8], 0xd
call fcn.0040c5f4
lea eax, [esp + 0x84]
lea ecx, [esp + 0xa4]
neg eax
sbb eax, eax
mov byte [esp + 0x2ac], 0xe
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea esi, [esp + 0x84]
neg esi
sbb esi, esi
lea eax, [esp + 0x98]
and esi, eax
mov eax, dword [esi]
push eax
call fcn.0043ad89
mov ecx, dword [esi + 8]
add esp, 4
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x84]
lea edx, [esp + 0x88]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
call fcn.0040b642
mov eax, dword [esp + 0x84]
mov byte [esp + 0x2ac], 5
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x84]
lea eax, [esp + ecx + 0x84]
push edx
call edi
mov edi, dword [esp + 0x2b8]
jmp 0x446776
lea eax, [esp + 0x78]
push 0x30c
push eax
lea ecx, [esp + 0x44]
call fcn.00447860
mov esi, eax
mov ecx, dword [esi]
mov byte [esp + 0x2ac], 0xf
call fcn.00447c70
push 0x30c
push eax
push edi
mov edi, dword [esp + 0x2c4]
push edi
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov al, byte [esp + 0x7c]
mov byte [esp + 0x2ac], 5
test al, al
je 0x4466f8
mov ecx, dword [esp + 0x78]
mov ebx, ecx
mov eax, dword [ecx + 0x1c]
test eax, eax
mov esi, eax
jne 0x4466e5
mov esi, 0x47d8e0
push esi
call fcn.0043ba72
add esp, 4
lea ecx, [ebx + 4]
push eax
push esi
call fcn.0040bfd4
mov eax, dword [esp + 0x80]
test eax, eax
je 0x446776
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x12]
push 1
push ecx
push edx
lea ecx, [esp + 0x148]
mov esi, eax
call fcn.00425c88
mov edx, dword [0x4675b8]
lea eax, [esp + 0x13c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x140]
and eax, ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x84]
mov byte [esp + 0x2b8], 0x10
lea ecx, [eax + 4]
call fcn.0040c5f4
lea ecx, [esp + 0x13c]
mov byte [esp + 0x2ac], 5
call fcn.00406320
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x3c]
call fcn.00447c70
lea ecx, [esp + 0x12]
push 1
push ecx
lea ecx, [esp + 0x20c]
mov esi, eax
call fcn.0040b2c0
lea edx, [esp + 0x31]
push 1
push edx
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x2b4], 0x11
call fcn.0040b2c0
lea eax, [esp + 0x39]
push 1
push eax
lea ecx, [esp + 0x25c]
mov byte [esp + 0x2b4], 0x12
call fcn.0040b2c0
lea ecx, [esp + 0x33]
push 1
push ecx
lea ecx, [esp + 0x234]
mov byte [esp + 0x2b4], 0x13
call fcn.0040b2c0
lea edx, [esp + 0x32]
push 1
push edx
lea ecx, [esp + 0x194]
mov byte [esp + 0x2b4], 0x14
call fcn.0040b2c0
lea eax, [esp + 0x3a]
push 1
xor ebp, ebp
push eax
push esi
lea ecx, [esp + 0x170]
mov byte [esp + 0x2b8], 0x15
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebp
call fcn.00425c88
push ebp
lea ecx, [esp + 0x16c]
mov byte [esp + 0x2b0], 0x16
call fcn.00447d90
cmp word [eax], 0x40
jne 0x446853
push 1
push ebp
lea ecx, [esp + 0x170]
call fcn.0040ca8a
lea ecx, [esp + 0x18c]
push 0x4793c4
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.00447340
mov esi, eax
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp eax, ebp
jne 0x446999
lea ecx, [esp + 0x164]
mov byte [esp + 0x2ac], 0x15
call fcn.00406320
lea ecx, [esp + 0x18c]
mov byte [esp + 0x2ac], 0x14
call fcn.00406320
lea ecx, [esp + 0x22c]
mov byte [esp + 0x2ac], 0x13
call fcn.00406320
lea ecx, [esp + 0x254]
mov byte [esp + 0x2ac], 0x12
call fcn.00406320
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x2ac], 0x11
call fcn.00406320
lea ecx, [esp + 0x204]
mov byte [esp + 0x2ac], 5
call fcn.00406320
lea eax, [esp + 0x3c]
lea edx, [esp + 0x5c]
neg eax
sbb eax, eax
mov byte [esp + 0x2ac], 0x1c
and eax, edx
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x50]
neg ecx
sbb ecx, ecx
mov dword [esi], eax
and ecx, edx
call fcn.004055db
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x40]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
mov byte [esp + 0x2b0], 0x1b
call fcn.0040b642
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
lea eax, [esp + edx + 0x3c]
mov eax, dword [esp + edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x2ac], 0x1d
call fcn.00406320
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.00406320
xor eax, eax
jmp 0x44731a
lea eax, [esp + 0x3b]
push 1
push eax
lea ecx, [esp + 0x144]
call fcn.0040b2c0
lea ecx, [esp + 0x30]
push 1
push ecx
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x2b4], 0x17
call fcn.0040b2c0
lea edx, [esp + 0x70]
lea eax, [esp + 0x74]
push edx
mov bl, 0x18
push eax
push 0x47d4e8
lea ecx, [esp + 0x198]
mov byte [esp + 0x2b8], bl
call fcn.00447c70
push eax
call fcn.0045dc76
add esp, 0x10
cmp eax, ebp
je 0x446aec
mov eax, dword [esp + 0x74]
cmp eax, ebp
je 0x446a16
lea ecx, [esp + 0x78]
push 0xa
push ecx
push eax
call fcn.00440348
add esp, 0xc
jmp 0x446a1b
mov eax, 0x47d8e4
lea edx, [esp + 0x1b]
push 1
push edx
push eax
lea ecx, [esp + 0x288]
call fcn.00425c88
mov edx, dword [0x4675b8]
lea eax, [esp + 0x27c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x280]
and eax, ecx
push edx
push ebp
push eax
lea ecx, [esp + 0xe0]
mov byte [esp + 0x2b8], 0x19
call fcn.0040c5f4
lea ecx, [esp + 0x27c]
mov byte [esp + 0x2ac], bl
call fcn.00406320
mov eax, dword [esp + 0x70]
cmp eax, ebp
je 0x446a8d
lea ecx, [esp + 0x78]
push 0xa
push ecx
push eax
call fcn.00440348
add esp, 0xc
jmp 0x446a92
mov eax, 0x47d8e4
lea edx, [esp + 0x1a]
push 1
push edx
push eax
lea ecx, [esp + 0x90]
call fcn.00425c88
mov edx, dword [0x4675b8]
lea eax, [esp + 0x84]
neg eax
sbb eax, eax
lea ecx, [esp + 0x88]
and eax, ecx
push edx
push ebp
push eax
lea ecx, [esp + 0x108]
mov byte [esp + 0x2b8], 0x1a
call fcn.0040c5f4
lea ecx, [esp + 0x84]
mov byte [esp + 0x2ac], bl
call fcn.00406320
jmp 0x446b23
lea eax, [esp + 0xd0]
push 0x47d4e4
lea ecx, [esp + 0x190]
push eax
push ecx
call fcn.00447340
lea edx, [esp + 0x104]
push 0x47d4e4
lea eax, [esp + 0x19c]
push edx
push eax
call fcn.00447340
add esp, 0x18
cmp esi, dword [0x4675b8]
je 0x446ccd
lea ecx, [esp + 0x254]
push 0x4793c4
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.00447340
add esp, 0xc
lea ecx, [esp + 0x258]
mov esi, eax
push ebp
call fcn.00447d90
cmp word [eax], 0x31
sete al
mov byte [esp + 0x120], al
mov eax, dword [0x4675b8]
cmp esi, eax
je 0x446ccd
lea ecx, [esp + 0x22c]
push 0x4793c4
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.00447340
add esp, 0xc
lea ecx, [esp + 0x230]
mov esi, eax
push ebp
call fcn.00447d90
cmp word [eax], 0x31
sete al
mov byte [esp + 0x121], al
mov eax, dword [0x4675b8]
cmp esi, eax
je 0x446ccd
lea ecx, [esp + 0x204]
push 0x4793c4
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.00447340
mov esi, eax
mov eax, dword [esp + 0x21c]
add esp, 0xc
cmp eax, ebp
je 0x446c48
lea eax, [esp + 0xc0]
lea ecx, [esp + 0xc4]
push eax
lea edx, [esp + 0xd0]
push ecx
push edx
push 0x47d4d8
lea ecx, [esp + 0x214]
call fcn.00447c70
push eax
call fcn.0045dc76
add esp, 0x14
cmp eax, 3
jne 0x446c48
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], edx
cmp esi, dword [0x4675b8]
je 0x446ccd
lea eax, [esp + 0x1dc]
push 0x4793c4
lea ecx, [esp + 0x168]
push eax
push ecx
call fcn.00447340
mov eax, dword [esp + 0x1f4]
add esp, 0xc
cmp eax, ebp
je 0x446ccd
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0xcc]
push eax
push ecx
push 0x47d4d8
lea ecx, [esp + 0x1ec]
call fcn.00447c70
push eax
call fcn.0045dc76
add esp, 0x14
cmp eax, 3
jne 0x446ccd
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x130], edx
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], ecx
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x2ac], 0x17
call fcn.00406320
lea ecx, [esp + 0x13c]
mov byte [esp + 0x2ac], 0x16
call fcn.00406320
lea ecx, [esp + 0x164]
mov byte [esp + 0x2ac], 0x15
call fcn.00406320
lea ecx, [esp + 0x18c]
mov byte [esp + 0x2ac], 0x14
call fcn.00406320
lea ecx, [esp + 0x22c]
mov byte [esp + 0x2ac], 0x13
call fcn.00406320
lea ecx, [esp + 0x254]
mov byte [esp + 0x2ac], 0x12
call fcn.00406320
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x2ac], 0x11
call fcn.00406320
lea ecx, [esp + 0x204]
mov byte [esp + 0x2ac], 5
call fcn.00406320
push ebp
lea ecx, [esp + 0x100]
call fcn.00447d90
cmp word [eax], 0x30
jb 0x446d93
push ebp
lea ecx, [esp + 0x100]
call fcn.00447d90
cmp word [eax], 0x39
jbe 0x446dc1
push ebp
lea ecx, [esp + 0xd8]
call fcn.00447d90
cmp word [eax], 0x30
jb 0x446eb6
push ebp
lea ecx, [esp + 0xd8]
call fcn.00447d90
cmp word [eax], 0x39
ja 0x446eb6
push edi
call fcn.0045b6b0
add esp, 4
test eax, eax
je 0x446de7
push ebp
lea ecx, [esp + 0x100]
call fcn.00447d90
cmp word [eax], bp
lea ecx, [esp + 0xf8]
jne 0x446dee
lea ecx, [esp + 0xd0]
call fcn.00447c70
push eax
call fcn.0043c655
mov esi, eax
mov al, byte [esp + 0x2c4]
add esp, 4
test al, al
jne 0x446e47
push 0xc
push ebp
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x10
jg 0x446e47
push ebp
lea ecx, [esp + 0xd8]
call fcn.00447d90
cmp word [eax], bp
je 0x446e47
lea ecx, [esp + 0xd0]
call fcn.00447c70
push eax
call fcn.0043c655
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x138]
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x2cc]
and edx, 0xff
shl edx, 8
and eax, 0xff
push ecx
mov ecx, dword [esp + 0x134]
or edx, eax
shl edx, 8
and ecx, 0xff
push ebp
or edx, ecx
mov eax, dword [esp + 0x2d8]
push edx
mov dl, byte [esp + 0x12c]
mov ebp, dword [esp + 0x20]
neg dl
sbb edx, edx
push edx
push esi
mov esi, dword [esp + 0x2c8]
push 0x47d8e4
push eax
push 2
push ebp
push edi
mov ecx, esi
call fcn.00445d80
jmp 0x447027
push edi
call fcn.0045b6b0
add esp, 4
test eax, eax
je 0x446f28
push ebp
lea ecx, [esp + 0x100]
call fcn.00447d90
cmp word [eax], bp
je 0x446f28
mov eax, dword [esp + 0x100]
cmp eax, ebp
jne 0x446ee5
mov eax, 0x4675bc
lea ecx, [esp + 0x1a]
push ebp
push ecx
push eax
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x1c0], 0x467578
mov dword [esp + 0x1e0], 0x467570
call fcn.00401bad
mov ebx, 1
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x2ac], 0x1e
jmp 0x446f7c
mov eax, dword [esp + 0xd8]
cmp eax, ebp
jne 0x446f38
mov eax, 0x4675bc
lea edx, [esp + 0x1b]
push ebp
push edx
push eax
lea ecx, [esp + 0x148]
mov dword [esp + 0x148], 0x467578
mov dword [esp + 0x168], 0x467570
call fcn.00401bad
mov ebx, 2
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x13c]
mov dword [esp + 0x2ac], 0x1f
call fcn.004058df
mov ecx, dword [esp + 0x2cc]
mov edx, dword [esp + 0x138]
push ecx
mov ecx, dword [esp + 0x138]
and edx, 0xff
and ecx, 0xff
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x134]
shl edx, 8
and ecx, 0xff
push 0
or edx, ecx
mov esi, dword [esp + 0x2bc]
push edx
mov dl, byte [esp + 0x12c]
neg dl
sbb edx, edx
mov ecx, esi
push edx
push 0
push eax
mov eax, dword [esp + 0x2c]
push 0
push 2
push eax
push edi
call fcn.00445d80
test bl, 2
mov dword [esp + 0x2ac], 0x1e
je 0x447007
and ebx, 0xfffffffd
lea ecx, [esp + 0x13c]
mov dword [esp + 0x28], ebx
call fcn.0040127e
test bl, 1
mov dword [esp + 0x2ac], 5
je 0x447023
lea ecx, [esp + 0x1b4]
call fcn.0040127e
mov ebp, dword [esp + 0x14]
push 0x47d8e4
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
mov ecx, esi
call fcn.004460d0
lea ecx, [esp + 0xb0]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xbc]
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
call edi
mov edx, dword [esp + 0x2b8]
lea ecx, [esp + 0x68]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00446070
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.00446040
mov al, byte [esp + 0x2c0]
test al, al
je 0x447169
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, eax
sub ebx, ecx
mov ecx, dword [esp + 0x2c]
sub edi, edx
cmp ecx, edi
jg 0x4470de
sub eax, ecx
push eax
jmp 0x4470df
push edx
mov ecx, esi
call fcn.00445fc0
mov ecx, dword [esp + 0x64]
cmp ecx, ebx
jg 0x447104
mov eax, dword [esp + 0x6c]
sub eax, ecx
mov ecx, dword [esp + 0x24]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push eax
jmp 0x447109
mov edx, dword [esp + 0x24]
push edx
mov ecx, esi
call fcn.00446000
mov eax, dword [esi + 8]
mov dword [eax + 0x3c], 0x4000
mov eax, dword [esp + 0x64]
cmp eax, ebx
jg 0x447124
mov ebx, eax
push ebx
mov ecx, esi
call fcn.00446160
mov eax, dword [esp + 0x2c]
cmp eax, edi
jle 0x447136
mov eax, edi
push eax
mov ecx, esi
call fcn.00446120
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp edx, edi
setg cl
dec ecx
and ecx, 0x3ffc
add ecx, 4
push ecx
mov ecx, esi
call fcn.004461a0
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x447273
mov edi, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sub edi, ebp
mov ebp, dword [esp + 0xbc]
mov ebx, ecx
sub ebp, edx
mov dl, byte [esp + 0x121]
test dl, dl
je 0x44720a
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
inc eax
inc ecx
push 0xfffffffffffffff0
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ecx
sub edi, 2
sub ebp, 2
call ebx
xor eax, 3
or eax, 0x100c
push eax
mov eax, dword [esp + 0x18]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffec
push ecx
call ebx
mov ebx, dword [esp + 0x14]
or eax, 0x20000
push eax
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x27
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.00445fc0
push ebx
mov ecx, esi
call fcn.00446000
push ebp
mov ecx, esi
call fcn.00446160
push edi
mov ecx, esi
call fcn.00446120
push 0x4000
mov ecx, esi
call fcn.004461a0
mov eax, dword [esp + 0x124]
cmp eax, 0xffffffff
je 0x447273
mov edx, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
and edx, 0xff
and ecx, 0xff
shl edx, 8
or edx, ecx
and eax, 0xff
shl edx, 8
or edx, eax
mov ecx, esi
push edx
call fcn.004460a0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004460d0
lea eax, [esp + 0x3c]
lea edx, [esp + 0x5c]
neg eax
sbb eax, eax
mov byte [esp + 0x2ac], 0x21
and eax, edx
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x50]
neg ecx
sbb ecx, ecx
mov dword [esi], eax
and ecx, edx
call fcn.004055db
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x40]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
mov byte [esp + 0x2b0], 0x20
call fcn.0040b642
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
lea eax, [esp + edx + 0x3c]
mov eax, dword [esp + edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x2ac], 0x22
call fcn.00406320
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.00406320
mov eax, 1
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a0
ret