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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c942
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00423787
mov ebx, eax
push 0x10
mov dword [esp + 0x30], ebx
call fcn.00411989
add esp, 4
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x88], ecx
cmp eax, ecx
je 0x408e1d
mov ecx, eax
call fcn.00412506
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x408e23
mov dword [esp + 0x10], ecx
mov edi, ecx
mov dword [esp + 0x88], 0xffffffff
test ebx, ebx
jne 0x408e36
xor eax, eax
jmp 0x408e39
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.004087af
lea eax, [esi + 0x9c]
test eax, eax
je 0x408e55
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.0040d9b0
mov edi, dword [edi + 4]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
test byte [eax + 0x10], 1
push 0xcc0020
push 0
je 0x408e90
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
push eax
push edi
push ecx
mov ecx, dword [ebx + 4]
push eax
push 0
push 0
push ecx
jmp 0x408ecf
cmp dword [esi + 0x90], 0
je 0x408eb6
mov eax, dword [esi + 0x94]
mov edx, dword [esi + 0x98]
lea ecx, [eax + eax]
push ecx
push edi
push edx
mov edx, dword [ebx + 4]
push eax
push 0
push 0
push edx
jmp 0x408ecf
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
push 0
push edi
push eax
mov eax, dword [ebx + 4]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
mov ecx, ebx
call eax
mov ecx, dword [esi + 0xb0]
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x30], eax
je 0x408f78
push 1
mov ecx, ebx
call fcn.00422a06
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0xc0]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esi + 0xc8]
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xb0]
sub eax, dword [esp + 0x58]
mov edi, dword [ecx - 0xc]
cdq
mov dword [esp + 0x14], edi
push dword [esp + 0x14]
mov edi, dword [ebx]
sub eax, edx
mov edx, dword [esi + 0xac]
push ecx
sar eax, 1
push edx
push eax
mov eax, dword [edi + 0x5c]
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
je 0x4093a5
xor ebx, ebx
push esi
lea ecx, [esp + 0x6c]
call fcn.0042065a
mov dword [esp + 0x88], 1
push 1
lea ecx, [esp + 0x6c]
call fcn.00422a06
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x408fe9
call fcn.0042a2d1
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + ebx + 0x14]
push edx
lea ecx, [esp + 0x6c]
call fcn.00408c6f
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x409025
call fcn.0042a2d1
mov ecx, dword [esi + 0x84]
mov edx, dword [ebx + ecx + 8]
push edx
lea ecx, [esp + 0x6c]
call fcn.0041e9f3
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x409070
call fcn.0042a2d1
mov ecx, dword [esi + 0x84]
cmp byte [ecx + ebx + 0x2c], 0
mov ecx, dword [esp + 0x40]
je 0x409166
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x48]
mov dword [esp + 0x50], ecx
push eax
mov ecx, esi
mov dword [esp + 0x58], edx
call fcn.0041f91d
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x14], 0x21
cmp edi, ecx
jb 0x4090dd
call fcn.0042a2d1
mov edx, dword [esi + 0x84]
cmp byte [ebx + edx + 0x2d], 0
je 0x4090f4
mov dword [esp + 0x14], 0x25
jmp 0x409126
mov ecx, dword [esi + 0x88]
sub ecx, edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x409118
call fcn.0042a2d1
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + ebx + 4]
add dword [esp + 0x4c], edx
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40914e
call fcn.0042a2d1
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x84]
push edx
lea eax, [ebx + ecx + 0x20]
lea edx, [esp + 0x4c]
jmp 0x40934d
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x88]
sub edx, dword [esi + 0x84]
sub ecx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
mov eax, 0x92492493
imul edx
add edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4091ac
call fcn.0042a2d1
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
sub edx, dword [esi + 0x84]
add eax, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov eax, 0x92492493
imul edx
add edx, dword [esp + 0x18]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4091ea
call fcn.0042a2d1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
sub ecx, dword [edx + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x84]
mov eax, dword [ebx + eax]
push edx
push ecx
push 0
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x409236
call fcn.0042a2d1
mov eax, dword [esi + 0x84]
add eax, ebx
mov eax, dword [eax + 0x20]
mov ecx, dword [eax - 0xc]
push 0x410
lea edx, [esp + 0x5c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x68]
lea ecx, [esp + 0x78]
call edx
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4092a1
call fcn.0042a2d1
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
add eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x4092e1
call fcn.0042a2d1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub eax, dword [edx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x84]
mov ecx, dword [ebx + ecx]
push edx
push eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x40933d
call fcn.0042a2d1
mov edx, dword [esi + 0x84]
lea eax, [ebx + edx + 0x20]
push 0x10
lea edx, [esp + 0x5c]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push edx
push ecx
push eax
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x68]
lea ecx, [esp + 0x78]
call edx
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.0041461e
mov ecx, dword [esi + 0x88]
sub ecx, dword [esi + 0x84]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x38
cmp edi, eax
jb 0x408fa1
mov ebx, dword [esp + 0x2c]
mov edx, dword [ebx]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + 0x20]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4093be
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push eax
call fcn.0040d9b0
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4