Function at 0x446680
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x46535d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x12]
xor ebx, ebx
push 1
push eax
lea ecx, [esp + 0xdc]
mov dword [esp + 0x40], ebx
call fcn.0040b0e9
lea ecx, [esp + 0x13]
push 1
push ecx
lea ecx, [esp + 0x104]
mov dword [esp + 0x2b8], ebx
call fcn.0040b0e9
or edi, 0xffffffff
mov byte [esp + 0x124], bl
mov byte [esp + 0x125], bl
mov dword [esp + 0x128], edi
mov dword [esp + 0x12c], edi
mov dword [esp + 0x130], edi
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], edi
mov dword [esp + 0x13c], edi
mov edx, dword [0x46760c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x2b0], 1
mov dword [esp + 0x40], 0x467608
mov dword [esp + 0x60], 0x467600
lea esi, [esp + edx + 0x40]
call ebp
mov dword [esi], eax
lea eax, [esp + 0x13]
lea ecx, [esp + 0x44]
push eax
mov byte [esp + 0x2b4], 2
call fcn.00448420
lea ecx, [esp + 0x54]
mov byte [esp + 0x2b0], 3
call fcn.004485f0
push ebx
lea ecx, [esp + 0x64]
mov byte [esp + 0x2b4], 4
call fcn.00448630
mov esi, dword [esp + 0x2c0]
mov ecx, dword [esp + 0x2bc]
push esi
push ecx
mov byte [esp + 0x2b8], 5
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x44681a
lea eax, [esp + 0x40]
lea edx, [esp + 0x60]
neg eax
sbb eax, eax
mov byte [esp + 0x2b0], 6
and eax, edx
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
add esi, eax
call ebp
mov dword [esi], eax
lea esi, [esp + 0x40]
neg esi
sbb esi, esi
lea edx, [esp + 0x54]
and esi, edx
mov eax, dword [esi]
push eax
call fcn.0043ba49
mov eax, dword [esi + 8]
add esp, 4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x44]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
call fcn.0040b46b
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x40]
lea eax, [esp + ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x2b0], 7
jmp 0x446ca8
mov eax, dword [esp + 0x2c8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
je 0x4469cb
cmp byte [eax], 0
je 0x4469cb
push 0
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], 0x467608
mov dword [esp + 0xa8], 0x467600
call fcn.00448600
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2b4], 8
mov byte [esp + 0x8c], al
call fcn.0040b46b
lea ecx, [esp + 0x98]
mov byte [esp + 0x2b0], 9
call fcn.004485f0
push 0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2b4], 0xa
call fcn.00448630
lea ecx, [esp + 0x84]
mov dword [esp + 0x6c], ecx
lea edx, [esp + 0x84]
mov byte [esp + 0x2b0], 0xc
test edx, edx
je 0x4468f0
mov edx, dword [esp + 0x2c8]
lea eax, [esp + 0x12]
push 1
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.00448230
or edi, 0xffffffff
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 4]
lea eax, [esp + edx + 0x84]
mov eax, dword [esp + edx + 0x84]
push eax
call ebx
mov edx, dword [0x4675f8]
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 + 0x50]
mov byte [esp + 0x2bc], 0xd
call fcn.0040c394
lea eax, [esp + 0x84]
lea ecx, [esp + 0xa4]
neg eax
sbb eax, eax
mov byte [esp + 0x2b0], 0xe
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call ebp
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.0043ba49
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.0040b46b
mov eax, dword [esp + 0x84]
mov byte [esp + 0x2b0], 5
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x84]
lea eax, [esp + ecx + 0x84]
push edx
jmp 0x446ab6
lea eax, [esp + 0x78]
push 0x30c
push eax
lea ecx, [esp + 0x48]
call fcn.00447da0
mov ecx, dword [eax]
mov byte [esp + 0x2b0], 0xf
mov byte [eax + 4], 1
call fcn.0040bd16
mov eax, dword [eax]
mov ecx, dword [esp + 0x2bc]
push 0x30c
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
mov al, byte [esp + 0x7c]
mov byte [esp + 0x2b0], 5
test al, al
je 0x446a45
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx + 0x1c]
test eax, eax
mov esi, eax
jne 0x446a2e
mov esi, 0x47e390
push esi
call fcn.0043c64f
mov edx, dword [esp + 0x20]
add esp, 4
push eax
push esi
lea ecx, [edx + 4]
call fcn.0040bdfd
mov eax, dword [esp + 0x80]
test eax, eax
je 0x446ab8
call ebp
mov ecx, dword [esp + 0x80]
mov esi, eax
lea eax, [esp + 0x12]
push 1
push eax
push ecx
lea ecx, [esp + 0x14c]
call fcn.00447b60
mov ecx, dword [0x4675f8]
lea eax, [esp + 0x140]
neg eax
sbb eax, eax
lea edx, [esp + 0x144]
and eax, edx
mov edx, dword [esp + 0x78]
push ecx
push 0
push eax
lea ecx, [edx + 4]
mov byte [esp + 0x2bc], 0x10
call fcn.0040c394
lea ecx, [esp + 0x140]
mov byte [esp + 0x2b0], 5
call fcn.0040604e
push esi
call ebx
lea ecx, [esp + 0x40]
call fcn.004483a0
mov esi, eax
lea eax, [esp + 0x12]
push 1
push eax
lea ecx, [esp + 0x1e8]
call fcn.0040b0e9
lea ecx, [esp + 0x3f]
push 1
push ecx
lea ecx, [esp + 0x210]
mov byte [esp + 0x2b8], 0x11
call fcn.0040b0e9
lea edx, [esp + 0x36]
push 1
push edx
lea ecx, [esp + 0x260]
mov byte [esp + 0x2b8], 0x12
call fcn.0040b0e9
lea eax, [esp + 0x37]
push 1
push eax
lea ecx, [esp + 0x238]
mov byte [esp + 0x2b8], 0x13
call fcn.0040b0e9
lea ecx, [esp + 0x33]
push 1
push ecx
lea ecx, [esp + 0x198]
mov byte [esp + 0x2b8], 0x14
call fcn.0040b0e9
lea edx, [esp + 0x32]
push 1
xor eax, eax
push edx
push esi
lea ecx, [esp + 0x174]
mov byte [esp + 0x2bc], 0x15
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
call fcn.00447b60
push 0
lea ecx, [esp + 0x170]
mov byte [esp + 0x2b4], 0x16
call fcn.004484c0
cmp word [eax], 0x40
jne 0x446b94
push 1
push 0
lea ecx, [esp + 0x174]
call fcn.0040c82a
lea eax, [esp + 0x190]
push 0x4685d4
lea ecx, [esp + 0x16c]
push eax
push ecx
call fcn.004476c0
mov esi, eax
mov eax, dword [esp + 0x1a8]
add esp, 0xc
test eax, eax
jne 0x446cce
lea ecx, [esp + 0x168]
mov byte [esp + 0x2b0], 0x15
call fcn.0040604e
lea ecx, [esp + 0x190]
mov byte [esp + 0x2b0], 0x14
call fcn.0040604e
lea ecx, [esp + 0x230]
mov byte [esp + 0x2b0], 0x13
call fcn.0040604e
lea ecx, [esp + 0x258]
mov byte [esp + 0x2b0], 0x12
call fcn.0040604e
lea ecx, [esp + 0x208]
mov byte [esp + 0x2b0], 0x11
call fcn.0040604e
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x2b0], 5
call fcn.0040604e
lea eax, [esp + 0x40]
lea edx, [esp + 0x60]
neg eax
sbb eax, eax
mov byte [esp + 0x2b0], 0x1c
and eax, edx
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
add esi, eax
call ebp
lea ecx, [esp + 0x40]
lea edx, [esp + 0x54]
neg ecx
sbb ecx, ecx
mov dword [esi], eax
and ecx, edx
call fcn.00430612
lea ecx, [esp + 0x40]
lea eax, [esp + 0x44]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
mov byte [esp + 0x2b4], 0x1b
call fcn.0040b46b
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 4]
lea eax, [esp + edx + 0x40]
mov eax, dword [esp + edx + 0x40]
push eax
call ebx
mov dword [esp + 0x2b0], 0x1d
lea ecx, [esp + 0xfc]
call fcn.0040604e
lea ecx, [esp + 0xd4]
mov dword [esp + 0x2b0], edi
call fcn.0040604e
xor eax, eax
jmp 0x4476a0
lea edx, [esp + 0x35]
push 1
push edx
lea ecx, [esp + 0x148]
call fcn.0040b0e9
lea eax, [esp + 0x34]
push 1
push eax
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x2b8], 0x17
call fcn.0040b0e9
mov eax, dword [esp + 0x198]
mov bl, 0x18
test eax, eax
mov byte [esp + 0x2b0], bl
jne 0x446d15
mov eax, 0x4675fc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0x47df14
push eax
call fcn.0045da06
add esp, 0x10
test eax, eax
je 0x446e27
mov eax, dword [esp + 0x20]
test eax, eax
je 0x446d4f
lea ecx, [esp + 0x78]
push 0xa
push ecx
push eax
call fcn.004406e7
add esp, 0xc
jmp 0x446d54
mov eax, 0x47e394
lea edx, [esp + 0x1b]
push 1
push edx
push eax
lea ecx, [esp + 0x28c]
call fcn.00447b60
mov edx, dword [0x4675f8]
lea eax, [esp + 0x280]
neg eax
sbb eax, eax
lea ecx, [esp + 0x284]
and eax, ecx
push edx
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x2bc], 0x19
call fcn.0040c394
lea ecx, [esp + 0x280]
mov byte [esp + 0x2b0], bl
call fcn.0040604e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x446dc7
lea ecx, [esp + 0x78]
push 0xa
push ecx
push eax
call fcn.004406e7
add esp, 0xc
jmp 0x446dcc
mov eax, 0x47e394
lea edx, [esp + 0x1a]
push 1
push edx
push eax
lea ecx, [esp + 0x90]
call fcn.00447b60
mov edx, dword [0x4675f8]
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 + 0x10c]
mov byte [esp + 0x2bc], 0x1a
call fcn.0040c394
lea ecx, [esp + 0x84]
mov byte [esp + 0x2b0], bl
call fcn.0040604e
jmp 0x446e5e
lea eax, [esp + 0xd4]
push 0x47df10
lea ecx, [esp + 0x194]
push eax
push ecx
call fcn.004476c0
lea edx, [esp + 0x108]
push 0x47df10
lea eax, [esp + 0x1a0]
push edx
push eax
call fcn.004476c0
add esp, 0x18
cmp esi, dword [0x4675f8]
je 0x44701c
lea ecx, [esp + 0x258]
push 0x4685d4
lea edx, [esp + 0x16c]
push ecx
push edx
call fcn.004476c0
add esp, 0xc
lea ecx, [esp + 0x25c]
mov esi, eax
push 0
call fcn.004484c0
cmp word [eax], 0x31
sete al
mov byte [esp + 0x124], al
mov eax, dword [0x4675f8]
cmp esi, eax
je 0x44701c
lea ecx, [esp + 0x230]
push 0x4685d4
lea edx, [esp + 0x16c]
push ecx
push edx
call fcn.004476c0
add esp, 0xc
lea ecx, [esp + 0x234]
mov esi, eax
push 0
call fcn.004484c0
cmp word [eax], 0x31
sete al
mov byte [esp + 0x125], al
mov eax, dword [0x4675f8]
cmp esi, eax
je 0x44701c
lea ecx, [esp + 0x1e0]
push 0x4685d4
lea edx, [esp + 0x16c]
push ecx
push edx
call fcn.004476c0
mov esi, eax
mov eax, dword [esp + 0x1f8]
add esp, 0xc
test eax, eax
je 0x446f89
mov eax, dword [esp + 0x1e8]
test eax, eax
jne 0x446f34
mov eax, 0x4675fc
lea ecx, [esp + 0xc0]
lea edx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0xc8]
push edx
push ecx
push 0x47defc
push eax
call fcn.0045da06
add esp, 0x14
cmp eax, 3
jne 0x446f89
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], ecx
cmp esi, dword [0x4675f8]
je 0x44701c
lea edx, [esp + 0x208]
push 0x4685d4
lea eax, [esp + 0x16c]
push edx
push eax
call fcn.004476c0
mov eax, dword [esp + 0x220]
add esp, 0xc
test eax, eax
je 0x44701c
mov eax, dword [esp + 0x210]
test eax, eax
jne 0x446fcd
mov eax, 0x4675fc
lea ecx, [esp + 0x6c]
lea edx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0xcc]
push edx
push ecx
push 0x47defc
push eax
call fcn.0045da06
add esp, 0x14
cmp eax, 3
jne 0x44701c
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x134], edx
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], ecx
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x2b0], 0x17
call fcn.0040604e
lea ecx, [esp + 0x140]
mov byte [esp + 0x2b0], 0x16
call fcn.0040604e
lea ecx, [esp + 0x168]
mov byte [esp + 0x2b0], 0x15
call fcn.0040604e
lea ecx, [esp + 0x190]
mov byte [esp + 0x2b0], 0x14
call fcn.0040604e
lea ecx, [esp + 0x230]
mov byte [esp + 0x2b0], 0x13
call fcn.0040604e
lea ecx, [esp + 0x258]
mov byte [esp + 0x2b0], 0x12
call fcn.0040604e
lea ecx, [esp + 0x208]
mov byte [esp + 0x2b0], 0x11
call fcn.0040604e
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x2b0], 5
call fcn.0040604e
push 0
lea ecx, [esp + 0x104]
call fcn.004484c0
cmp word [eax], 0x30
jb 0x4470e4
push 0
lea ecx, [esp + 0x104]
call fcn.004484c0
cmp word [eax], 0x39
jbe 0x447114
push 0
lea ecx, [esp + 0xdc]
call fcn.004484c0
cmp word [eax], 0x30
jb 0x447228
push 0
lea ecx, [esp + 0xdc]
call fcn.004484c0
cmp word [eax], 0x39
ja 0x447228
mov ecx, dword [esp + 0x2bc]
push ecx
call fcn.0045b4e0
add esp, 4
test eax, eax
je 0x447143
push 0
lea ecx, [esp + 0x104]
call fcn.004484c0
cmp word [eax], 0
lea ecx, [esp + 0xfc]
jne 0x44714a
lea ecx, [esp + 0xd4]
call fcn.004483a0
push eax
call fcn.0043d54a
mov esi, eax
mov al, byte [esp + 0x2c8]
add esp, 4
test al, al
jne 0x4471a6
push 0xc
push 0
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x10
jg 0x4471a6
push 0
lea ecx, [esp + 0xdc]
call fcn.004484c0
cmp word [eax], 0
je 0x4471a6
lea ecx, [esp + 0xd4]
call fcn.004483a0
push eax
call fcn.0043d54a
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x2d0]
and eax, 0xff
shl eax, 8
and ecx, 0xff
push edx
mov edx, dword [esp + 0x138]
or eax, ecx
shl eax, 8
and edx, 0xff
push 0
or eax, edx
mov ecx, dword [esp + 0x2dc]
push eax
mov al, byte [esp + 0x130]
mov edx, dword [esp + 0x20]
neg al
sbb eax, eax
push eax
mov eax, dword [esp + 0x2cc]
push esi
mov esi, dword [esp + 0x2cc]
push 0x47e390
push ecx
push 2
push edx
push eax
mov ecx, esi
call fcn.004460f0
mov edi, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x14]
jmp 0x4473ae
mov ecx, dword [esp + 0x2bc]
push ecx
call fcn.0045b4e0
add esp, 4
test eax, eax
je 0x4472a4
push 0
lea ecx, [esp + 0x104]
call fcn.004484c0
cmp word [eax], 0
je 0x4472a4
mov eax, dword [esp + 0x104]
test eax, eax
jne 0x447260
mov eax, 0x4675fc
lea edx, [esp + 0x1a]
push 0
push edx
push eax
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x1c4], 0x4675b8
mov dword [esp + 0x1e4], 0x4675b0
call fcn.00401779
mov ebx, 1
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x1b8]
mov byte [esp + 0x2b0], 0x1e
jmp 0x4472f9
mov eax, dword [esp + 0xdc]
test eax, eax
jne 0x4472b4
mov eax, 0x4675fc
lea ecx, [esp + 0x1b]
push 0
push ecx
push eax
lea ecx, [esp + 0x14c]
mov dword [esp + 0x14c], 0x4675b8
mov dword [esp + 0x16c], 0x4675b0
call fcn.00401779
mov ebx, 2
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x140]
mov dword [esp + 0x2b0], 0x1f
mov eax, dword [eax + 8]
test eax, eax
jne 0x447305
mov eax, 0x467588
mov edx, dword [esp + 0x2d0]
mov ecx, dword [esp + 0x13c]
push edx
mov edx, dword [esp + 0x13c]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x138]
shl ecx, 8
and edx, 0xff
push 0
or ecx, edx
mov ebp, dword [esp + 0x1c]
push ecx
mov cl, byte [esp + 0x130]
neg cl
mov edi, dword [esp + 0x2c8]
mov esi, dword [esp + 0x2c4]
sbb ecx, ecx
push ecx
push 0
push eax
push 0
push 2
push ebp
push edi
mov ecx, esi
call fcn.004460f0
test bl, 2
mov dword [esp + 0x2b0], 0x1e
je 0x447392
and ebx, 0xfffffffd
lea ecx, [esp + 0x140]
mov dword [esp + 0x38], ebx
call fcn.0040125c
test bl, 1
mov dword [esp + 0x2b0], 5
je 0x4473ae
lea ecx, [esp + 0x1b8]
call fcn.0040125c
push 0x47e390
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
mov ecx, esi
call fcn.00446440
lea edx, [esp + 0xb0]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb8]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xbc]
push ecx
push edi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call ebx
lea edx, [esp + 0x70]
push edx
push edi
call ebx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.004463e0
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
call fcn.004463b0
mov al, byte [esp + 0x2c4]
test al, al
je 0x4474e9
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov edi, eax
sub ebx, ecx
mov ecx, dword [esp + 0x2c]
sub edi, edx
cmp ecx, edi
jg 0x44745e
sub eax, ecx
push eax
jmp 0x44745f
push edx
mov ecx, esi
call fcn.00446330
mov ecx, dword [esp + 0x68]
cmp ecx, ebx
jg 0x447484
mov eax, dword [esp + 0x74]
sub eax, ecx
mov ecx, dword [esp + 0x28]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push eax
jmp 0x447489
mov edx, dword [esp + 0x28]
push edx
mov ecx, esi
call fcn.00446370
mov eax, dword [esi + 8]
mov dword [eax + 0x3c], 0x4000
mov eax, dword [esp + 0x68]
cmp eax, ebx
jg 0x4474a4
mov ebx, eax
push ebx
mov ecx, esi
call fcn.004464d0
mov eax, dword [esp + 0x2c]
cmp eax, edi
jle 0x4474b6
mov eax, edi
push eax
mov ecx, esi
call fcn.00446490
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.00446510
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4475f9
mov edi, dword [esp + 0xb8]
mov ebp, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
mov dl, byte [esp + 0x125]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub edi, ebp
mov ebp, dword [esp + 0xbc]
sub ebp, ebx
mov dword [esp + 0x1c], eax
test dl, dl
mov dword [esp + 0x20], ecx
je 0x447588
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
inc eax
inc ecx
push 0xfffffffffffffff0
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 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_SetWindowLongW]
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_SetWindowLongW]
push 0x27
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00446330
mov eax, dword [esp + 0x20]
mov ecx, esi
push eax
call fcn.00446370
push ebp
mov ecx, esi
call fcn.004464d0
push edi
mov ecx, esi
call fcn.00446490
push 0x4000
mov ecx, esi
call fcn.00446510
mov eax, dword [esp + 0x128]
cmp eax, 0xffffffff
je 0x4475f9
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x12c]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
or ecx, edx
and eax, 0xff
shl ecx, 8
or ecx, eax
push ecx
mov ecx, esi
call fcn.00446410
push 0xffffffffffffffff
mov ecx, esi
call fcn.00446440
lea eax, [esp + 0x40]
lea ecx, [esp + 0x60]
neg eax
sbb eax, eax
mov byte [esp + 0x2b0], 0x21
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x40]
mov dword [esi], eax
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x54]
and ecx, eax
call fcn.00430612
lea ecx, [esp + 0x40]
lea edx, [esp + 0x44]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
mov byte [esp + 0x2b4], 0x20
call fcn.0040b46b
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x40]
lea eax, [esp + ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0xfc]
mov dword [esp + 0x2b0], 0x22
call fcn.0040604e
lea ecx, [esp + 0xd4]
mov dword [esp + 0x2b0], 0xffffffff
call fcn.0040604e
mov eax, 1
mov ecx, dword [esp + 0x2a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a4
ret