Function at 0x408f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472c51
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x4936d0]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4936d0]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov esi, ecx
push 0x3ee
mov dword [esp + 0x30], esi
call fcn.0042643b
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0
mov dword [esp + 0x2c], ebx
call edi
push 1
mov dword [esp + 0x44], eax
call edi
cmp byte [ebp + 0xc], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
jne 0x40905b
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jl 0x40905b
mov ecx, dword [esi + 0x98]
sub ecx, dword [esi + 0x94]
sar ecx, 3
cmp edi, ecx
jge 0x40905b
mov edx, dword [esi + 0x98]
sub edx, dword [esi + 0x94]
sar edx, 3
cmp edi, edx
jb 0x40902e
call fcn.0043c51f
mov eax, dword [esi + 0x94]
mov edx, dword [esi + 0x98]
mov ecx, dword [eax + edi*8]
sub edx, eax
sar edx, 3
mov dword [ebp + 0x10], ecx
cmp edi, edx
jb 0x40904e
call fcn.0043c51f
mov eax, dword [esi + 0x94]
mov ecx, dword [eax + edi*8 + 4]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebx + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push edx
call edi
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0x303
push eax
call edi
mov ebx, dword [esi + 0x98]
lea edi, [esi + 0x88]
mov dword [esp + 0x30], edi
cmp dword [edi + 0xc], ebx
jbe 0x409099
call fcn.0043c51f
mov ecx, dword [edi]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x20], ecx
cmp ecx, dword [edi + 0x10]
jbe 0x4090b4
call fcn.0043c51f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
push ebx
push edx
push ecx
push eax
lea ebx, [esp + 0x58]
call fcn.00409f10
push 0x3ef
mov ecx, esi
call fcn.0042643b
mov eax, dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf0
push eax
call edi
cmp eax, 1
jne 0x4090f1
xor edi, edi
jmp 0x40913e
push 0x3f0
mov ecx, esi
call fcn.0042643b
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push ecx
call edi
cmp eax, 1
jne 0x409115
mov edi, eax
jmp 0x40913e
push 0x3f1
mov ecx, esi
call fcn.0042643b
mov edx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push edx
call edi
mov edi, 2
cmp eax, 1
je 0x40913e
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
push ecx
mov esi, 1
call fcn.0041cee0
mov edx, eax
mov eax, edi
call fcn.0041bb50
add esp, 8
call fcn.0040b2f0
mov ecx, eax
mov eax, dword [ecx + 0x18]
mov edx, dword [eax]
mov edi, dword [ecx]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx]
test edi, edi
je 0x409185
cmp edi, eax
je 0x40918a
call fcn.0043c51f
cmp dword [esp + 0x18], esi
je 0x409821
call fcn.0040b2b0
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
test edi, edi
jne 0x4095c7
call fcn.0043c51f
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x4091bf
call fcn.0043c51f
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x6c]
push eax
add edx, 0xc
push ecx
mov dword [esp + 0x28], edx
call fcn.0040b2b0
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 4
call fcn.00409dc0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4091f1
cmp eax, dword [esp + 0x48]
je 0x4091f6
call fcn.0043c51f
cmp dword [esi + 4], ebx
sete bl
mov byte [esp + 0x1f], bl
test edi, edi
jne 0x4095ce
call fcn.0043c51f
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x40921d
call fcn.0043c51f
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
cmp dword [eax], edx
jg 0x409258
test edi, edi
jne 0x4095d5
call fcn.0043c51f
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x409246
call fcn.0043c51f
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], edx
mov byte [esp + 0x13], 0
jle 0x40925d
mov byte [esp + 0x13], 1
test bl, bl
je 0x40926b
cmp byte [ebp + 8], 0
jne 0x4097fd
cmp byte [esp + 0x13], 0
je 0x40927c
cmp byte [ebp + 8], 0
je 0x4097fd
test edi, edi
jne 0x4095dc
call fcn.0043c51f
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x409299
call fcn.0043c51f
test edi, edi
jne 0x4095e3
call fcn.0043c51f
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x18]
jne 0x4092b6
call fcn.0043c51f
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
imul eax, dword [esp + 0x38]
imul edx, dword [ecx]
cmp edx, eax
jg 0x4097fd
test edi, edi
jne 0x4095ea
call fcn.0043c51f
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x18]
jne 0x4092f0
call fcn.0043c51f
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
mov ebx, esi
call fcn.00409d50
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], eax
mov word [esp + 0x94], cx
mov dword [esp + 0x2c0], eax
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jne 0x4095f1
call fcn.0043c51f
xor eax, eax
mov edi, dword [esp + 0x18]
cmp edi, dword [eax + 0x18]
jne 0x409345
call fcn.0043c51f
test ebx, ebx
jne 0x4095f8
call fcn.0043c51f
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x40935e
call fcn.0043c51f
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0xb4]
push 0x485458
push ecx
mov edx, 0x200
call fcn.00401d00
or edx, 0xffffffff
sub edx, dword [esp + 0xb4]
add esp, 0x10
cmp edx, 1
ja 0x409393
call fcn.00455488
mov edi, dword [esp + 0xa4]
inc edi
lea eax, [esp + 0x90]
call fcn.00407c10
mov esi, 8
test al, al
je 0x4093fb
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], esi
jae 0x4093c7
lea eax, [esp + 0x94]
mov edx, dword [esp + 0xa4]
mov ecx, 0x200e
mov word [eax + edx*2], cx
mov eax, dword [esp + 0x94]
mov dword [esp + 0xa4], edi
cmp dword [esp + 0xa8], esi
jae 0x4093f5
lea eax, [esp + 0x94]
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [esp + 0xac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409405
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x94]
call fcn.004074a0
or edx, 0xffffffff
sub edx, dword [esp + 0xa4]
cmp edx, 1
ja 0x40943c
call fcn.00455488
mov edi, dword [esp + 0xa4]
inc edi
lea eax, [esp + 0x90]
call fcn.00407c10
test al, al
je 0x40949f
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], esi
jae 0x40946b
lea eax, [esp + 0x94]
mov edx, dword [esp + 0xa4]
mov ecx, 0x200e
mov word [eax + edx*2], cx
mov eax, dword [esp + 0x94]
mov dword [esp + 0xa4], edi
cmp dword [esp + 0xa8], esi
jae 0x409499
lea eax, [esp + 0x94]
xor ecx, ecx
mov word [eax + edi*2], cx
test ebx, ebx
jne 0x4095ff
call fcn.0043c51f
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x18]
jne 0x4094bc
call fcn.0043c51f
test ebx, ebx
jne 0x409606
call fcn.0043c51f
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4094d5
call fcn.0043c51f
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
call fcn.004083f0
mov esi, eax
test esi, esi
je 0x409583
test ebx, ebx
jne 0x40960d
call fcn.0043c51f
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x18]
jne 0x40950a
call fcn.0043c51f
test ebx, ebx
jne 0x409614
call fcn.0043c51f
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x409527
call fcn.0043c51f
mov eax, dword [edi + 4]
cdq
idiv esi
push eax
mov eax, dword [edi]
cdq
idiv esi
lea edx, [esp + 0xb0]
push eax
push str.__d:_d
push edx
mov edx, 0x200
call fcn.00401d00
lea eax, [esp + 0xbc]
add esp, 0x10
lea edx, [eax + 2]
jmp 0x409560
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409560
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x94]
call fcn.004074a0
cmp byte [esp + 0x1f], 0
je 0x409680
push 3
mov eax, 0x485480
lea ecx, [esp + 0x94]
call fcn.004074a0
mov eax, dword [0x4ced18]
mov ecx, dword [0x4ced14]
push 0
push eax
push ecx
push 0x398
call fcn.004028c0
test eax, eax
je 0x40961b
push 0x61
call fcn.00402850
jmp 0x40961d
mov eax, dword [edi]
jmp 0x4091b1
mov eax, dword [edi]
jmp 0x40920f
mov eax, dword [edi]
jmp 0x409238
mov eax, dword [edi]
jmp 0x40928b
mov eax, dword [edi]
jmp 0x4092a8
mov edi, dword [edi]
jmp 0x4092e2
mov eax, dword [ebx]
jmp 0x409337
mov eax, dword [ebx]
jmp 0x409354
mov eax, dword [ebx]
jmp 0x4094ae
mov eax, dword [ebx]
jmp 0x4094cb
mov eax, dword [ebx]
jmp 0x4094fc
mov eax, dword [ebx]
jmp 0x409519
xor eax, eax
lea edx, [esp + 0x74]
push edx
mov ecx, eax
call fcn.00402c10
mov byte [esp + 0x2c0], 1
cmp dword [eax + 0x18], 8
jb 0x40963c
mov eax, dword [eax + 4]
jmp 0x40963f
add eax, 4
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409644
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x94]
call fcn.004074a0
cmp dword [esp + 0x8c], 8
jb 0x409737
mov eax, dword [esp + 0x78]
push eax
call fcn.0041d532
add esp, 4
jmp 0x409737
cmp byte [esp + 0x13], 0
je 0x409737
push 3
mov eax, 0x485480
lea ecx, [esp + 0x94]
call fcn.004074a0
mov ecx, dword [0x4ced18]
mov edx, dword [0x4ced14]
push 0
push ecx
push edx
push 0x398
call fcn.004028c0
test eax, eax
je 0x4096c5
push 0x62
call fcn.00402850
jmp 0x4096c7
xor eax, eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
call fcn.00402c10
mov byte [esp + 0x2c0], 2
cmp dword [eax + 0x18], 8
jb 0x4096e6
mov eax, dword [eax + 4]
jmp 0x4096e9
add eax, 4
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4096f0
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x94]
call fcn.004074a0
cmp dword [esp + 0x68], 8
jb 0x409720
mov edx, dword [esp + 0x54]
push edx
call fcn.0041d532
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x40974f
lea eax, [esp + 0x94]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
push eax
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test ebx, ebx
jne 0x409813
call fcn.0043c51f
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x409784
call fcn.0043c51f
mov edx, dword [ebp + 0x10]
cmp dword [edi], edx
jne 0x4097b8
test ebx, ebx
jne 0x40981a
call fcn.0043c51f
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x4097a8
call fcn.0043c51f
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], edx
jne 0x4097b8
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c0], 0xffffffff
cmp dword [esp + 0xa8], 8
jb 0x4097dd
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0041d532
add esp, 4
xor edx, edx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], dx
lea esi, [esp + 0x14]
call fcn.0040a280
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
jmp 0x409178
mov eax, dword [ebx]
jmp 0x409776
mov eax, dword [ebx]
jmp 0x40979a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
push 0
push eax
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x2c]
call fcn.00408650
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.0043bb40
mov esp, ebp
pop ebp
ret 0x10