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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c872
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.0041a8ed
mov ebx, eax
push 0x10
mov dword [esp + 0x30], ebx
call fcn.00404664
add esp, 4
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x88], ecx
cmp eax, ecx
je 0x40e01d
mov ecx, eax
call fcn.0040f865
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x40e023
mov dword [esp + 0x10], ecx
mov edi, ecx
mov dword [esp + 0x88], 0xffffffff
test ebx, ebx
jne 0x40e036
xor eax, eax
jmp 0x40e039
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.0041008d
lea eax, [esi + 0x9c]
test eax, eax
je 0x40e055
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
push eax
push edx
call fcn.0040d73a
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 0x40e090
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 0x40e0cf
cmp dword [esi + 0x90], 0
je 0x40e0b6
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 0x40e0cf
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 0x40e178
push 1
mov ecx, ebx
call fcn.0041cf06
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 0x40e5a5
xor ebx, ebx
push esi
lea ecx, [esp + 0x6c]
call fcn.0040d929
mov dword [esp + 0x88], 1
push 1
lea ecx, [esp + 0x6c]
call fcn.0041cf06
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 0x40e1e9
call fcn.0042a201
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx + ebx + 0x14]
push edx
lea ecx, [esp + 0x6c]
call fcn.004044d3
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 0x40e225
call fcn.0042a201
mov ecx, dword [esi + 0x84]
mov edx, dword [ebx + ecx + 8]
push edx
lea ecx, [esp + 0x6c]
call fcn.004208a1
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 0x40e270
call fcn.0042a201
mov ecx, dword [esi + 0x84]
cmp byte [ecx + ebx + 0x2c], 0
mov ecx, dword [esp + 0x40]
je 0x40e366
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.0041d402
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 0x40e2dd
call fcn.0042a201
mov edx, dword [esi + 0x84]
cmp byte [ebx + edx + 0x2d], 0
je 0x40e2f4
mov dword [esp + 0x14], 0x25
jmp 0x40e326
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 0x40e318
call fcn.0042a201
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 0x40e34e
call fcn.0042a201
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x84]
push edx
lea eax, [ebx + ecx + 0x20]
lea edx, [esp + 0x4c]
jmp 0x40e54d
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 0x40e3ac
call fcn.0042a201
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 0x40e3ea
call fcn.0042a201
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 0x40e436
call fcn.0042a201
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 0x40e4a1
call fcn.0042a201
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 0x40e4e1
call fcn.0042a201
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 0x40e53d
call fcn.0042a201
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.004214ea
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 0x40e1a1
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 0x40e5be
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push eax
call fcn.0040d73a
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