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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472d21
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.00426507
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 0x40907b
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 0x40907b
mov ecx, dword [esi + 0x98]
sub ecx, dword [esi + 0x94]
sar ecx, 3
cmp edi, ecx
jge 0x40907b
mov edx, dword [esi + 0x98]
sub edx, dword [esi + 0x94]
sar edx, 3
cmp edi, edx
jb 0x40904e
call fcn.0043c5fa
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 0x40906e
call fcn.0043c5fa
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 0x4090b9
call fcn.0043c5fa
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 0x4090d4
call fcn.0043c5fa
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.00409e70
push 0x3ef
mov ecx, esi
call fcn.00426507
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 0x409111
xor edi, edi
jmp 0x40915e
push 0x3f0
mov ecx, esi
call fcn.00426507
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push ecx
call edi
cmp eax, 1
jne 0x409135
mov edi, eax
jmp 0x40915e
push 0x3f1
mov ecx, esi
call fcn.00426507
mov edx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push edx
call edi
mov edi, 2
cmp eax, 1
je 0x40915e
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
push ecx
mov esi, 1
call fcn.0041cf30
mov edx, eax
mov eax, edi
call fcn.0041bba0
add esp, 8
call fcn.0040b260
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 0x4091a5
cmp edi, eax
je 0x4091aa
call fcn.0043c5fa
cmp dword [esp + 0x18], esi
je 0x409841
call fcn.0040b220
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
test edi, edi
jne 0x4095e7
call fcn.0043c5fa
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x4091df
call fcn.0043c5fa
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x6c]
push eax
add edx, 0xc
push ecx
mov dword [esp + 0x28], edx
call fcn.0040b220
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 4
call fcn.00409d20
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x409211
cmp eax, dword [esp + 0x48]
je 0x409216
call fcn.0043c5fa
cmp dword [esi + 4], ebx
sete bl
mov byte [esp + 0x1f], bl
test edi, edi
jne 0x4095ee
call fcn.0043c5fa
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x40923d
call fcn.0043c5fa
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
cmp dword [eax], edx
jg 0x409278
test edi, edi
jne 0x4095f5
call fcn.0043c5fa
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x409266
call fcn.0043c5fa
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], edx
mov byte [esp + 0x13], 0
jle 0x40927d
mov byte [esp + 0x13], 1
test bl, bl
je 0x40928b
cmp byte [ebp + 8], 0
jne 0x40981d
cmp byte [esp + 0x13], 0
je 0x40929c
cmp byte [ebp + 8], 0
je 0x40981d
test edi, edi
jne 0x4095fc
call fcn.0043c5fa
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x4092b9
call fcn.0043c5fa
test edi, edi
jne 0x409603
call fcn.0043c5fa
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x18]
jne 0x4092d6
call fcn.0043c5fa
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 0x40981d
test edi, edi
jne 0x40960a
call fcn.0043c5fa
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x18]
jne 0x409310
call fcn.0043c5fa
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
mov ebx, esi
call fcn.00409cb0
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 0x409611
call fcn.0043c5fa
xor eax, eax
mov edi, dword [esp + 0x18]
cmp edi, dword [eax + 0x18]
jne 0x409365
call fcn.0043c5fa
test ebx, ebx
jne 0x409618
call fcn.0043c5fa
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x40937e
call fcn.0043c5fa
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0xb4]
push 0x485478
push ecx
mov edx, 0x200
call fcn.00401cf0
or edx, 0xffffffff
sub edx, dword [esp + 0xb4]
add esp, 0x10
cmp edx, 1
ja 0x4093b3
call fcn.00455540
mov edi, dword [esp + 0xa4]
inc edi
lea eax, [esp + 0x90]
call fcn.00407c30
mov esi, 8
test al, al
je 0x40941b
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], esi
jae 0x4093e7
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 0x409415
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 0x409425
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x94]
call fcn.00407550
or edx, 0xffffffff
sub edx, dword [esp + 0xa4]
cmp edx, 1
ja 0x40945c
call fcn.00455540
mov edi, dword [esp + 0xa4]
inc edi
lea eax, [esp + 0x90]
call fcn.00407c30
test al, al
je 0x4094bf
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], esi
jae 0x40948b
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 0x4094b9
lea eax, [esp + 0x94]
xor ecx, ecx
mov word [eax + edi*2], cx
test ebx, ebx
jne 0x40961f
call fcn.0043c5fa
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x18]
jne 0x4094dc
call fcn.0043c5fa
test ebx, ebx
jne 0x409626
call fcn.0043c5fa
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4094f5
call fcn.0043c5fa
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
call fcn.00408410
mov esi, eax
test esi, esi
je 0x4095a3
test ebx, ebx
jne 0x40962d
call fcn.0043c5fa
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x18]
jne 0x40952a
call fcn.0043c5fa
test ebx, ebx
jne 0x409634
call fcn.0043c5fa
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x409547
call fcn.0043c5fa
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.00401cf0
lea eax, [esp + 0xbc]
add esp, 0x10
lea edx, [eax + 2]
jmp 0x409580
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409580
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x94]
call fcn.00407550
cmp byte [esp + 0x1f], 0
je 0x4096a0
push 3
mov eax, 0x4854a0
lea ecx, [esp + 0x94]
call fcn.00407550
mov eax, dword [0x4ced18]
mov ecx, dword [0x4ced14]
push 0
push eax
push ecx
push 0x398
call fcn.004028e0
test eax, eax
je 0x40963b
push 0x61
call fcn.00402870
jmp 0x40963d
mov eax, dword [edi]
jmp 0x4091d1
mov eax, dword [edi]
jmp 0x40922f
mov eax, dword [edi]
jmp 0x409258
mov eax, dword [edi]
jmp 0x4092ab
mov eax, dword [edi]
jmp 0x4092c8
mov edi, dword [edi]
jmp 0x409302
mov eax, dword [ebx]
jmp 0x409357
mov eax, dword [ebx]
jmp 0x409374
mov eax, dword [ebx]
jmp 0x4094ce
mov eax, dword [ebx]
jmp 0x4094eb
mov eax, dword [ebx]
jmp 0x40951c
mov eax, dword [ebx]
jmp 0x409539
xor eax, eax
lea edx, [esp + 0x74]
push edx
mov ecx, eax
call fcn.00402c30
mov byte [esp + 0x2c0], 1
cmp dword [eax + 0x18], 8
jb 0x40965c
mov eax, dword [eax + 4]
jmp 0x40965f
add eax, 4
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409664
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x94]
call fcn.00407550
cmp dword [esp + 0x8c], 8
jb 0x409757
mov eax, dword [esp + 0x78]
push eax
call fcn.0041d58d
add esp, 4
jmp 0x409757
cmp byte [esp + 0x13], 0
je 0x409757
push 3
mov eax, 0x4854a0
lea ecx, [esp + 0x94]
call fcn.00407550
mov ecx, dword [0x4ced18]
mov edx, dword [0x4ced14]
push 0
push ecx
push edx
push 0x398
call fcn.004028e0
test eax, eax
je 0x4096e5
push 0x62
call fcn.00402870
jmp 0x4096e7
xor eax, eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
call fcn.00402c30
mov byte [esp + 0x2c0], 2
cmp dword [eax + 0x18], 8
jb 0x409706
mov eax, dword [eax + 4]
jmp 0x409709
add eax, 4
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409710
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x94]
call fcn.00407550
cmp dword [esp + 0x68], 8
jb 0x409740
mov edx, dword [esp + 0x54]
push edx
call fcn.0041d58d
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 0x40976f
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 0x409833
call fcn.0043c5fa
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x4097a4
call fcn.0043c5fa
mov edx, dword [ebp + 0x10]
cmp dword [edi], edx
jne 0x4097d8
test ebx, ebx
jne 0x40983a
call fcn.0043c5fa
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x18]
jne 0x4097c8
call fcn.0043c5fa
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], edx
jne 0x4097d8
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c0], 0xffffffff
cmp dword [esp + 0xa8], 8
jb 0x4097fd
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0041d58d
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.00407100
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
jmp 0x409198
mov eax, dword [ebx]
jmp 0x409796
mov eax, dword [ebx]
jmp 0x4097ba
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.00408670
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.0043bc1b
mov esp, ebp
pop ebp
ret 0x10