Function at 0x401ce0
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.00415fde
mov ebx, eax
push 0x10
mov dword [esp + 0x30], ebx
call fcn.0040c728
add esp, 4
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x88], ecx
cmp eax, ecx
je 0x401d4d
mov ecx, eax
call fcn.00403618
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x401d53
mov dword [esp + 0x10], ecx
mov edi, ecx
mov dword [esp + 0x88], 0xffffffff
test ebx, ebx
jne 0x401d66
xor eax, eax
jmp 0x401d69
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.00404ff7
lea eax, [esi + 0x9c]
test eax, eax
je 0x401d85
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.00416b4e
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 0x401dc0
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 0x401dff
cmp dword [esi + 0x90], 0
je 0x401de6
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 0x401dff
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 0x401ea8
push 1
mov ecx, ebx
call fcn.0041e128
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 0x4022d5
xor ebx, ebx
push esi
lea ecx, [esp + 0x6c]
call fcn.00411b8e
mov dword [esp + 0x88], 1
push 1
lea ecx, [esp + 0x6c]
call fcn.0041e128
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 0x401f19
call fcn.0042a2d1
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + ebx + 0x14]
push edx
lea ecx, [esp + 0x6c]
call fcn.00412448
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 0x401f55
call fcn.0042a2d1
mov ecx, dword [esi + 0x84]
mov edx, dword [ebx + ecx + 8]
push edx
lea ecx, [esp + 0x6c]
call fcn.004194f5
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 0x401fa0
call fcn.0042a2d1
mov ecx, dword [esi + 0x84]
cmp byte [ecx + ebx + 0x2c], 0
mov ecx, dword [esp + 0x40]
je 0x402096
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.0041e521
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 0x40200d
call fcn.0042a2d1
mov edx, dword [esi + 0x84]
cmp byte [ebx + edx + 0x2d], 0
je 0x402024
mov dword [esp + 0x14], 0x25
jmp 0x402056
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 0x402048
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 0x40207e
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 0x40227d
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 0x4020dc
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 0x40211a
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 0x402166
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 0x4021d1
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 0x402211
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 0x40226d
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.00410f15
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 0x401ed1
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 0x4022ee
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push eax
call fcn.00416b4e
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