Function at 0x466b10
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4a15dd
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.00401907
lea ecx, [esp + 0x13]
push 1
push ecx
lea ecx, [esp + 0x100]
mov dword [esp + 0x2b4], edi
call fcn.00401907
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 [0x4a3684]
mov ebp, 0x4a3680
mov ebx, 0x4a3678
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.004684f0
lea ecx, [esp + 0x50]
mov byte [esp + 0x2ac], 3
call fcn.004686a0
push edi
lea ecx, [esp + 0x60]
mov byte [esp + 0x2b0], 4
call fcn.004686e0
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 0x466cd9
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.0044c894
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.00401245
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.00401093
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.00401093
xor eax, eax
jmp 0x467b1a
mov esi, dword [esp + 0x2c4]
test esi, esi
je 0x466e85
cmp byte [esi], 0
je 0x466e85
push 0
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], ebp
mov dword [esp + 0xa8], ebx
call fcn.004686b0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x2b0], 8
mov byte [esp + 0x8c], al
call fcn.00401245
lea ecx, [esp + 0x98]
mov byte [esp + 0x2ac], 9
call fcn.004686a0
push 0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x2b0], 0xa
call fcn.004686e0
lea ecx, [esp + 0x84]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x84]
mov byte [esp + 0x2ac], 0xc
test edx, edx
je 0x466d97
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.00445a39
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 [0x4a3690]
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.00401e1a
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.0044c894
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.00401245
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 0x466f76
lea eax, [esp + 0x78]
push 0x30c
push eax
lea ecx, [esp + 0x44]
call fcn.00468060
mov esi, eax
mov ecx, dword [esi]
mov byte [esp + 0x2ac], 0xf
call fcn.00468470
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 0x466ef8
mov ecx, dword [esp + 0x78]
mov ebx, ecx
mov eax, dword [ecx + 0x1c]
test eax, eax
mov esi, eax
jne 0x466ee5
mov esi, 0x4c6e10
push esi
call fcn.0047d464
add esp, 4
lea ecx, [ebx + 4]
push eax
push esi
call fcn.00401282
mov eax, dword [esp + 0x80]
test eax, eax
je 0x466f76
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.0044554d
mov edx, dword [0x4a3690]
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.00401e1a
lea ecx, [esp + 0x13c]
mov byte [esp + 0x2ac], 5
call fcn.00401093
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x3c]
call fcn.00468470
lea ecx, [esp + 0x12]
push 1
push ecx
lea ecx, [esp + 0x20c]
mov esi, eax
call fcn.00401907
lea edx, [esp + 0x31]
push 1
push edx
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x2b4], 0x11
call fcn.00401907
lea eax, [esp + 0x39]
push 1
push eax
lea ecx, [esp + 0x25c]
mov byte [esp + 0x2b4], 0x12
call fcn.00401907
lea ecx, [esp + 0x33]
push 1
push ecx
lea ecx, [esp + 0x234]
mov byte [esp + 0x2b4], 0x13
call fcn.00401907
lea edx, [esp + 0x32]
push 1
push edx
lea ecx, [esp + 0x194]
mov byte [esp + 0x2b4], 0x14
call fcn.00401907
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.0044554d
push ebp
lea ecx, [esp + 0x16c]
mov byte [esp + 0x2b0], 0x16
call fcn.0042d122
cmp word [eax], 0x40
jne 0x467053
push 1
push ebp
lea ecx, [esp + 0x170]
call fcn.00401fab
lea ecx, [esp + 0x18c]
push 0x4bb1d8
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.00467b40
mov esi, eax
mov eax, dword [esp + 0x1a4]
add esp, 0xc
cmp eax, ebp
jne 0x467199
lea ecx, [esp + 0x164]
mov byte [esp + 0x2ac], 0x15
call fcn.00401093
lea ecx, [esp + 0x18c]
mov byte [esp + 0x2ac], 0x14
call fcn.00401093
lea ecx, [esp + 0x22c]
mov byte [esp + 0x2ac], 0x13
call fcn.00401093
lea ecx, [esp + 0x254]
mov byte [esp + 0x2ac], 0x12
call fcn.00401093
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x2ac], 0x11
call fcn.00401093
lea ecx, [esp + 0x204]
mov byte [esp + 0x2ac], 5
call fcn.00401093
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.00402e22
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.00401245
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.00401093
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.00401093
xor eax, eax
jmp 0x467b1a
lea eax, [esp + 0x3b]
push 1
push eax
lea ecx, [esp + 0x144]
call fcn.00401907
lea ecx, [esp + 0x30]
push 1
push ecx
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x2b4], 0x17
call fcn.00401907
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.00468470
push eax
call fcn.004802f7
add esp, 0x10
cmp eax, ebp
je 0x4672ec
mov eax, dword [esp + 0x74]
cmp eax, ebp
je 0x467216
lea ecx, [esp + 0x78]
push 0xa
push ecx
push eax
call fcn.0047f82a
add esp, 0xc
jmp 0x46721b
mov eax, 0x4c6e14
lea edx, [esp + 0x1b]
push 1
push edx
push eax
lea ecx, [esp + 0x288]
call fcn.0044554d
mov edx, dword [0x4a3690]
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.00401e1a
lea ecx, [esp + 0x27c]
mov byte [esp + 0x2ac], bl
call fcn.00401093
mov eax, dword [esp + 0x70]
cmp eax, ebp
je 0x46728d
lea ecx, [esp + 0x78]
push 0xa
push ecx
push eax
call fcn.0047f82a
add esp, 0xc
jmp 0x467292
mov eax, 0x4c6e14
lea edx, [esp + 0x1a]
push 1
push edx
push eax
lea ecx, [esp + 0x90]
call fcn.0044554d
mov edx, dword [0x4a3690]
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.00401e1a
lea ecx, [esp + 0x84]
mov byte [esp + 0x2ac], bl
call fcn.00401093
jmp 0x467323
lea eax, [esp + 0xd0]
push 0x4c2eac
lea ecx, [esp + 0x190]
push eax
push ecx
call fcn.00467b40
lea edx, [esp + 0x104]
push 0x4c2eac
lea eax, [esp + 0x19c]
push edx
push eax
call fcn.00467b40
add esp, 0x18
cmp esi, dword [0x4a3690]
je 0x4674cd
lea ecx, [esp + 0x254]
push 0x4bb1d8
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.00467b40
add esp, 0xc
lea ecx, [esp + 0x258]
mov esi, eax
push ebp
call fcn.0042d122
cmp word [eax], 0x31
sete al
mov byte [esp + 0x120], al
mov eax, dword [0x4a3690]
cmp esi, eax
je 0x4674cd
lea ecx, [esp + 0x22c]
push 0x4bb1d8
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.00467b40
add esp, 0xc
lea ecx, [esp + 0x230]
mov esi, eax
push ebp
call fcn.0042d122
cmp word [eax], 0x31
sete al
mov byte [esp + 0x121], al
mov eax, dword [0x4a3690]
cmp esi, eax
je 0x4674cd
lea ecx, [esp + 0x204]
push 0x4bb1d8
lea edx, [esp + 0x168]
push ecx
push edx
call fcn.00467b40
mov esi, eax
mov eax, dword [esp + 0x21c]
add esp, 0xc
cmp eax, ebp
je 0x467448
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.00468470
push eax
call fcn.004802f7
add esp, 0x14
cmp eax, 3
jne 0x467448
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 [0x4a3690]
je 0x4674cd
lea eax, [esp + 0x1dc]
push 0x4bb1d8
lea ecx, [esp + 0x168]
push eax
push ecx
call fcn.00467b40
mov eax, dword [esp + 0x1f4]
add esp, 0xc
cmp eax, ebp
je 0x4674cd
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.00468470
push eax
call fcn.004802f7
add esp, 0x14
cmp eax, 3
jne 0x4674cd
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.00401093
lea ecx, [esp + 0x13c]
mov byte [esp + 0x2ac], 0x16
call fcn.00401093
lea ecx, [esp + 0x164]
mov byte [esp + 0x2ac], 0x15
call fcn.00401093
lea ecx, [esp + 0x18c]
mov byte [esp + 0x2ac], 0x14
call fcn.00401093
lea ecx, [esp + 0x22c]
mov byte [esp + 0x2ac], 0x13
call fcn.00401093
lea ecx, [esp + 0x254]
mov byte [esp + 0x2ac], 0x12
call fcn.00401093
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x2ac], 0x11
call fcn.00401093
lea ecx, [esp + 0x204]
mov byte [esp + 0x2ac], 5
call fcn.00401093
push ebp
lea ecx, [esp + 0x100]
call fcn.0042d122
cmp word [eax], 0x30
jb 0x467593
push ebp
lea ecx, [esp + 0x100]
call fcn.0042d122
cmp word [eax], 0x39
jbe 0x4675c1
push ebp
lea ecx, [esp + 0xd8]
call fcn.0042d122
cmp word [eax], 0x30
jb 0x4676b6
push ebp
lea ecx, [esp + 0xd8]
call fcn.0042d122
cmp word [eax], 0x39
ja 0x4676b6
push edi
call fcn.0047cb80
add esp, 4
test eax, eax
je 0x4675e7
push ebp
lea ecx, [esp + 0x100]
call fcn.0042d122
cmp word [eax], bp
lea ecx, [esp + 0xf8]
jne 0x4675ee
lea ecx, [esp + 0xd0]
call fcn.00468470
push eax
call fcn.0047ef40
mov esi, eax
mov al, byte [esp + 0x2c4]
add esp, 4
test al, al
jne 0x467647
push 0xc
push ebp
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x10
jg 0x467647
push ebp
lea ecx, [esp + 0xd8]
call fcn.0042d122
cmp word [eax], bp
je 0x467647
lea ecx, [esp + 0xd0]
call fcn.00468470
push eax
call fcn.0047ef40
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 0x4c6e14
push eax
push 2
push ebp
push edi
mov ecx, esi
call fcn.00466470
jmp 0x467827
push edi
call fcn.0047cb80
add esp, 4
test eax, eax
je 0x467728
push ebp
lea ecx, [esp + 0x100]
call fcn.0042d122
cmp word [eax], bp
je 0x467728
mov eax, dword [esp + 0x100]
cmp eax, ebp
jne 0x4676e5
mov eax, 0x4a368c
lea ecx, [esp + 0x1a]
push ebp
push ecx
push eax
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x1c0], 0x4a4238
mov dword [esp + 0x1e0], 0x4a4230
call fcn.00404d89
mov ebx, 1
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x2ac], 0x1e
jmp 0x46777c
mov eax, dword [esp + 0xd8]
cmp eax, ebp
jne 0x467738
mov eax, 0x4a368c
lea edx, [esp + 0x1b]
push ebp
push edx
push eax
lea ecx, [esp + 0x148]
mov dword [esp + 0x148], 0x4a4238
mov dword [esp + 0x168], 0x4a4230
call fcn.00404d89
mov ebx, 2
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x13c]
mov dword [esp + 0x2ac], 0x1f
call fcn.00445b64
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.00466470
test bl, 2
mov dword [esp + 0x2ac], 0x1e
je 0x467807
and ebx, 0xfffffffd
lea ecx, [esp + 0x13c]
mov dword [esp + 0x28], ebx
call fcn.00402438
test bl, 1
mov dword [esp + 0x2ac], 5
je 0x467823
lea ecx, [esp + 0x1b4]
call fcn.00402438
mov ebp, dword [esp + 0x14]
push 0x4c6e14
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
mov ecx, esi
call fcn.00466850
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.004667b0
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.00466780
mov al, byte [esp + 0x2c0]
test al, al
je 0x467969
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 0x4678de
sub eax, ecx
push eax
jmp 0x4678df
push edx
mov ecx, esi
call fcn.004666e0
mov ecx, dword [esp + 0x64]
cmp ecx, ebx
jg 0x467904
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 0x467909
mov edx, dword [esp + 0x24]
push edx
mov ecx, esi
call fcn.00466740
mov eax, dword [esi + 8]
mov dword [eax + 0x3c], 0x4000
mov eax, dword [esp + 0x64]
cmp eax, ebx
jg 0x467924
mov ebx, eax
push ebx
mov ecx, esi
call fcn.00466910
mov eax, dword [esp + 0x2c]
cmp eax, edi
jle 0x467936
mov eax, edi
push eax
mov ecx, esi
call fcn.004668a0
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.004669a0
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x467a73
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 0x467a0a
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.004666e0
push ebx
mov ecx, esi
call fcn.00466740
push ebp
mov ecx, esi
call fcn.00466910
push edi
mov ecx, esi
call fcn.004668a0
push 0x4000
mov ecx, esi
call fcn.004669a0
mov eax, dword [esp + 0x124]
cmp eax, 0xffffffff
je 0x467a73
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.00466800
push 0xffffffffffffffff
mov ecx, esi
call fcn.00466850
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.00402e22
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.00401245
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.00401093
lea ecx, [esp + 0xd0]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.00401093
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