Function at 0x446170
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x46525d
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.0040b2ce
lea ecx, [esp + 0x13]
push 1
push ecx
lea ecx, [esp + 0x100]
mov dword [esp + 0x2b4], edi
call fcn.0040b2ce
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.00447b50
lea ecx, [esp + 0x50]
mov byte [esp + 0x2ac], 3
call fcn.00447d90
push edi
lea ecx, [esp + 0x60]
mov byte [esp + 0x2b0], 4
call fcn.00447dd0
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 0x446339
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.0043abd4
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.00401cbc
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.0040632e
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.0040632e
xor eax, eax
jmp 0x44717a
mov esi, dword [esp + 0x2c4]
test esi, esi
je 0x4464e5
cmp byte [esi], 0
je 0x4464e5
push 0
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], ebp
mov dword [esp + 0xa8], ebx
call fcn.00447da0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2b0], 8
mov byte [esp + 0x8c], al
call fcn.00401cbc
lea ecx, [esp + 0x98]
mov byte [esp + 0x2ac], 9
call fcn.00447d90
push 0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2b0], 0xa
call fcn.00447dd0
lea ecx, [esp + 0x84]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x84]
mov byte [esp + 0x2ac], 0xc
test edx, edx
je 0x4463f7
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.004261c8
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.0040c5c5
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.0043abd4
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.00401cbc
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 0x4465d6
lea eax, [esp + 0x78]
push 0x30c
push eax
lea ecx, [esp + 0x44]
call fcn.004476c0
mov esi, eax
mov ecx, dword [esi]
mov byte [esp + 0x2ac], 0xf
call fcn.00447ad0
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 0x446558
mov ecx, dword [esp + 0x78]
mov ebx, ecx
mov eax, dword [ecx + 0x1c]
test eax, eax
mov esi, eax
jne 0x446545
mov esi, 0x47d770
push esi
call fcn.0043b8c2
add esp, 4
lea ecx, [ebx + 4]
push eax
push esi
call fcn.0040bfa5
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4465d6
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.004259b2
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.0040c5c5
lea ecx, [esp + 0x13c]
mov byte [esp + 0x2ac], 5
call fcn.0040632e
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x3c]
call fcn.00447ad0
lea ecx, [esp + 0x12]
push 1
push ecx
lea ecx, [esp + 0x20c]
mov esi, eax
call fcn.0040b2ce
lea edx, [esp + 0x31]
push 1
push edx
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x2b4], 0x11
call fcn.0040b2ce
lea eax, [esp + 0x39]
push 1
push eax
lea ecx, [esp + 0x25c]
mov byte [esp + 0x2b4], 0x12
call fcn.0040b2ce
lea ecx, [esp + 0x33]
push 1
push ecx
lea ecx, [esp + 0x234]
mov byte [esp + 0x2b4], 0x13
call fcn.0040b2ce
lea edx, [esp + 0x32]
push 1
push edx
lea ecx, [esp + 0x194]
mov byte [esp + 0x2b4], 0x14
call fcn.0040b2ce
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.004259b2
push ebp
lea ecx, [esp + 0x16c]
mov byte [esp + 0x2b0], 0x16
call fcn.00447bf0
cmp word [eax], 0x40
jne 0x4466b3
push 1
push ebp
lea ecx, [esp + 0x170]
call fcn.0040ca5b
lea ecx, [esp + 0x18c]
push 0x479244
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.004471a0
mov esi, eax
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp eax, ebp
jne 0x4467f9
lea ecx, [esp + 0x164]
mov byte [esp + 0x2ac], 0x15
call fcn.0040632e
lea ecx, [esp + 0x18c]
mov byte [esp + 0x2ac], 0x14
call fcn.0040632e
lea ecx, [esp + 0x22c]
mov byte [esp + 0x2ac], 0x13
call fcn.0040632e
lea ecx, [esp + 0x254]
mov byte [esp + 0x2ac], 0x12
call fcn.0040632e
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x2ac], 0x11
call fcn.0040632e
lea ecx, [esp + 0x204]
mov byte [esp + 0x2ac], 5
call fcn.0040632e
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.004055f3
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.00401cbc
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.0040632e
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.0040632e
xor eax, eax
jmp 0x44717a
lea eax, [esp + 0x3b]
push 1
push eax
lea ecx, [esp + 0x144]
call fcn.0040b2ce
lea ecx, [esp + 0x30]
push 1
push ecx
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x2b4], 0x17
call fcn.0040b2ce
lea edx, [esp + 0x70]
lea eax, [esp + 0x74]
push edx
mov bl, 0x18
push eax
push str._d__d
lea ecx, [esp + 0x198]
mov byte [esp + 0x2b8], bl
call fcn.00447ad0
push eax
call fcn.0045dad6
add esp, 0x10
cmp eax, ebp
je 0x44694c
mov eax, dword [esp + 0x74]
cmp eax, ebp
je 0x446876
lea ecx, [esp + 0x78]
push 0xa
push ecx
push eax
call fcn.004401a5
add esp, 0xc
jmp 0x44687b
mov eax, 0x47d774
lea edx, [esp + 0x1b]
push 1
push edx
push eax
lea ecx, [esp + 0x288]
call fcn.004259b2
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.0040c5c5
lea ecx, [esp + 0x27c]
mov byte [esp + 0x2ac], bl
call fcn.0040632e
mov eax, dword [esp + 0x70]
cmp eax, ebp
je 0x4468ed
lea ecx, [esp + 0x78]
push 0xa
push ecx
push eax
call fcn.004401a5
add esp, 0xc
jmp 0x4468f2
mov eax, 0x47d774
lea edx, [esp + 0x1a]
push 1
push edx
push eax
lea ecx, [esp + 0x90]
call fcn.004259b2
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.0040c5c5
lea ecx, [esp + 0x84]
mov byte [esp + 0x2ac], bl
call fcn.0040632e
jmp 0x446983
lea eax, [esp + 0xd0]
push 0x47d374
lea ecx, [esp + 0x190]
push eax
push ecx
call fcn.004471a0
lea edx, [esp + 0x104]
push 0x47d374
lea eax, [esp + 0x19c]
push edx
push eax
call fcn.004471a0
add esp, 0x18
cmp esi, dword [0x4675b8]
je 0x446b2d
lea ecx, [esp + 0x254]
push 0x479244
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.004471a0
add esp, 0xc
lea ecx, [esp + 0x258]
mov esi, eax
push ebp
call fcn.00447bf0
cmp word [eax], 0x31
sete al
mov byte [esp + 0x120], al
mov eax, dword [0x4675b8]
cmp esi, eax
je 0x446b2d
lea ecx, [esp + 0x22c]
push 0x479244
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.004471a0
add esp, 0xc
lea ecx, [esp + 0x230]
mov esi, eax
push ebp
call fcn.00447bf0
cmp word [eax], 0x31
sete al
mov byte [esp + 0x121], al
mov eax, dword [0x4675b8]
cmp esi, eax
je 0x446b2d
lea ecx, [esp + 0x204]
push 0x479244
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.004471a0
mov esi, eax
mov eax, dword [esp + 0x21c]
add esp, 0xc
cmp eax, ebp
je 0x446aa8
lea eax, [esp + 0xc0]
lea ecx, [esp + 0xc4]
push eax
lea edx, [esp + 0xd0]
push ecx
push edx
push str._d__d__d
lea ecx, [esp + 0x214]
call fcn.00447ad0
push eax
call fcn.0045dad6
add esp, 0x14
cmp eax, 3
jne 0x446aa8
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 0x446b2d
lea eax, [esp + 0x1dc]
push 0x479244
lea ecx, [esp + 0x168]
push eax
push ecx
call fcn.004471a0
mov eax, dword [esp + 0x1f4]
add esp, 0xc
cmp eax, ebp
je 0x446b2d
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0xcc]
push eax
push ecx
push str._d__d__d
lea ecx, [esp + 0x1ec]
call fcn.00447ad0
push eax
call fcn.0045dad6
add esp, 0x14
cmp eax, 3
jne 0x446b2d
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.0040632e
lea ecx, [esp + 0x13c]
mov byte [esp + 0x2ac], 0x16
call fcn.0040632e
lea ecx, [esp + 0x164]
mov byte [esp + 0x2ac], 0x15
call fcn.0040632e
lea ecx, [esp + 0x18c]
mov byte [esp + 0x2ac], 0x14
call fcn.0040632e
lea ecx, [esp + 0x22c]
mov byte [esp + 0x2ac], 0x13
call fcn.0040632e
lea ecx, [esp + 0x254]
mov byte [esp + 0x2ac], 0x12
call fcn.0040632e
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x2ac], 0x11
call fcn.0040632e
lea ecx, [esp + 0x204]
mov byte [esp + 0x2ac], 5
call fcn.0040632e
push ebp
lea ecx, [esp + 0x100]
call fcn.00447bf0
cmp word [eax], 0x30
jb 0x446bf3
push ebp
lea ecx, [esp + 0x100]
call fcn.00447bf0
cmp word [eax], 0x39
jbe 0x446c21
push ebp
lea ecx, [esp + 0xd8]
call fcn.00447bf0
cmp word [eax], 0x30
jb 0x446d16
push ebp
lea ecx, [esp + 0xd8]
call fcn.00447bf0
cmp word [eax], 0x39
ja 0x446d16
push edi
call fcn.0045b510
add esp, 4
test eax, eax
je 0x446c47
push ebp
lea ecx, [esp + 0x100]
call fcn.00447bf0
cmp word [eax], bp
lea ecx, [esp + 0xf8]
jne 0x446c4e
lea ecx, [esp + 0xd0]
call fcn.00447ad0
push eax
call fcn.0043c48f
mov esi, eax
mov al, byte [esp + 0x2c4]
add esp, 4
test al, al
jne 0x446ca7
push 0xc
push ebp
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x10
jg 0x446ca7
push ebp
lea ecx, [esp + 0xd8]
call fcn.00447bf0
cmp word [eax], bp
je 0x446ca7
lea ecx, [esp + 0xd0]
call fcn.00447ad0
push eax
call fcn.0043c48f
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 0x47d774
push eax
push 2
push ebp
push edi
mov ecx, esi
call fcn.00445be0
jmp 0x446e87
push edi
call fcn.0045b510
add esp, 4
test eax, eax
je 0x446d88
push ebp
lea ecx, [esp + 0x100]
call fcn.00447bf0
cmp word [eax], bp
je 0x446d88
mov eax, dword [esp + 0x100]
cmp eax, ebp
jne 0x446d45
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.00401bb7
mov ebx, 1
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x2ac], 0x1e
jmp 0x446ddc
mov eax, dword [esp + 0xd8]
cmp eax, ebp
jne 0x446d98
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.00401bb7
mov ebx, 2
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x13c]
mov dword [esp + 0x2ac], 0x1f
call fcn.004058ed
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.00445be0
test bl, 2
mov dword [esp + 0x2ac], 0x1e
je 0x446e67
and ebx, 0xfffffffd
lea ecx, [esp + 0x13c]
mov dword [esp + 0x28], ebx
call fcn.00401279
test bl, 1
mov dword [esp + 0x2ac], 5
je 0x446e83
lea ecx, [esp + 0x1b4]
call fcn.00401279
mov ebp, dword [esp + 0x14]
push 0x47d774
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
mov ecx, esi
call fcn.00445f30
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.00445ed0
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.00445ea0
mov al, byte [esp + 0x2c0]
test al, al
je 0x446fc9
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 0x446f3e
sub eax, ecx
push eax
jmp 0x446f3f
push edx
mov ecx, esi
call fcn.00445e20
mov ecx, dword [esp + 0x64]
cmp ecx, ebx
jg 0x446f64
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 0x446f69
mov edx, dword [esp + 0x24]
push edx
mov ecx, esi
call fcn.00445e60
mov eax, dword [esi + 8]
mov dword [eax + 0x3c], 0x4000
mov eax, dword [esp + 0x64]
cmp eax, ebx
jg 0x446f84
mov ebx, eax
push ebx
mov ecx, esi
call fcn.00445fc0
mov eax, dword [esp + 0x2c]
cmp eax, edi
jle 0x446f96
mov eax, edi
push eax
mov ecx, esi
call fcn.00445f80
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.00446000
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4470d3
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 0x44706a
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.00445e20
push ebx
mov ecx, esi
call fcn.00445e60
push ebp
mov ecx, esi
call fcn.00445fc0
push edi
mov ecx, esi
call fcn.00445f80
push 0x4000
mov ecx, esi
call fcn.00446000
mov eax, dword [esp + 0x124]
cmp eax, 0xffffffff
je 0x4470d3
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.00445f00
push 0xffffffffffffffff
mov ecx, esi
call fcn.00445f30
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.004055f3
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.00401cbc
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.0040632e
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.0040632e
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