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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c742
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.00405863
mov ebx, eax
push 0x10
mov dword [esp + 0x30], ebx
call fcn.0041ceed
add esp, 4
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x88], ecx
cmp eax, ecx
je 0x403f7d
mov ecx, eax
call fcn.00408a69
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x403f83
mov dword [esp + 0x10], ecx
mov edi, ecx
mov dword [esp + 0x88], 0xffffffff
test ebx, ebx
jne 0x403f96
xor eax, eax
jmp 0x403f99
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.00408d00
lea eax, [esi + 0x9c]
test eax, eax
je 0x403fb5
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.0040933d
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 0x403ff0
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 0x40402f
cmp dword [esi + 0x90], 0
je 0x404016
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 0x40402f
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 0x4040d8
push 1
mov ecx, ebx
call fcn.004111bd
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 0x404505
xor ebx, ebx
push esi
lea ecx, [esp + 0x6c]
call fcn.0040f59c
mov dword [esp + 0x88], 1
push 1
lea ecx, [esp + 0x6c]
call fcn.004111bd
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 0x404149
call fcn.0042a143
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + ebx + 0x14]
push edx
lea ecx, [esp + 0x6c]
call fcn.00416624
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 0x404185
call fcn.0042a143
mov ecx, dword [esi + 0x84]
mov edx, dword [ebx + ecx + 8]
push edx
lea ecx, [esp + 0x6c]
call fcn.0040ef2e
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 0x4041d0
call fcn.0042a143
mov ecx, dword [esi + 0x84]
cmp byte [ecx + ebx + 0x2c], 0
mov ecx, dword [esp + 0x40]
je 0x4042c6
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.0040d591
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 0x40423d
call fcn.0042a143
mov edx, dword [esi + 0x84]
cmp byte [ebx + edx + 0x2d], 0
je 0x404254
mov dword [esp + 0x14], 0x25
jmp 0x404286
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 0x404278
call fcn.0042a143
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 0x4042ae
call fcn.0042a143
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x84]
push edx
lea eax, [ebx + ecx + 0x20]
lea edx, [esp + 0x4c]
jmp 0x4044ad
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 0x40430c
call fcn.0042a143
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 0x40434a
call fcn.0042a143
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 0x404396
call fcn.0042a143
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 0x404401
call fcn.0042a143
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 0x404441
call fcn.0042a143
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 0x40449d
call fcn.0042a143
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.0042316b
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 0x404101
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 0x40451e
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push eax
call fcn.0040933d
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