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

Disassembly:
push 0xffffffffffffffff
push 0x54c22c
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x14], eax
mov ecx, eax
xor edx, edx
lea edi, [ecx + 0x34]
cmp dword [0x5c6ff8], edx
je 0x414078
cmp dword [esp + 0x4c], edx
je 0x413fbc
test dword [ecx + 0x98], 0x10000
jne 0x413fbc
mov edx, 1
movzx eax, word [ecx + 0x9a]
and eax, 1
mov dword [esp + 0x4c], eax
test edx, edx
je 0x414078
xor ecx, ecx
test byte [ebp + 0x1b8], 1
je 0x413fe2
mov ecx, 1
mov eax, dword [ebp + 0x1b8]
mov esi, dword [edi + 4]
mov edx, eax
shr edx, 1
sub esi, edx
mov edx, dword [ebp + 0x1bc]
sub esi, ecx
mov ecx, dword [edi + 8]
imul edx, ecx
sub esi, 4
add eax, esi
mov dword [esp + 0x18], eax
mov eax, 0x51eb851f
mul edx
mov eax, dword [edi + 8]
mov ebx, eax
shr edx, 5
sub ecx, edx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0xf0]
mov edx, dword [eax]
mov eax, dword [ebp + 0x1b0]
mov edx, dword [edx + 0x44]
push eax
mov eax, dword [ebp + 0x1ac]
push eax
mov eax, dword [esp + 0x20]
push eax
sar edi, 1
push edi
shr ecx, 1
push esi
sub ebx, ecx
push ecx
mov ecx, dword [esp + 0x108]
call edx
mov edx, dword [ebp + 0x1b4]
mov ecx, dword [esp + 0xf0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push edx
mov edx, dword [ebp + 0x1b0]
push edx
mov edx, dword [esp + 0x20]
push edx
push ebx
push esi
dec edi
push edi
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x44], 0
je 0x4149ab
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x88]
xor edi, edi
dec eax
lea esi, [ebp + 0x250]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], edi
cmp eax, 3
ja case.default.0x4140ae
jmp dword [eax*4 + 0x414a18]
cmp dword [ebx + 0xcc], edi
jne 0x4140cc
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x4149e4
cmp dword [ebx + 0xd0], edi
jne 0x4140ec
cmp dword [ebx + 0x114], edi
je 0x4140e4
lea esi, [ebx + 0x118]
jmp 0x414100
lea esi, [ebp + 0x1c0]
jmp 0x414100
lea esi, [ebx + 0x148]
cmp dword [ebx + 0x114], edi
jne 0x414100
lea esi, [ebp + 0x1f0]
mov dword [esp + 0x30], 1
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0xf0]
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x60], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], 0
call edx
mov eax, dword [esi]
mov ecx, 0xff000000
test ecx, eax
jne 0x41414a
test dword [esi + 4], ecx
jne 0x41414a
test dword [esi + 8], ecx
je 0x414187
mov edi, dword [esi + 0x24]
fld qword [esi + 0x28]
mov ecx, dword [ebp + 0x108]
push edi
mov edi, dword [esi + 8]
mov edx, dword [ecx]
sub esp, 8
mov edx, dword [edx + 0x40]
fstp qword [esp]
push edi
mov edi, dword [esi + 4]
push edi
push eax
mov eax, dword [esi + 0x20]
push eax
mov eax, dword [ebx + 0x40]
add ebx, 0x34
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 0x398]
push eax
call edx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x414193
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx + 0x110]
add ebx, 0xf4
add esi, 0xffffffff
js 0x4142b6
push esi
mov eax, ebx
call fcn.00487e90
cmp dword [eax + 0x4c], 1
jne 0x4142ad
push esi
mov eax, ebx
call fcn.00487e90
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x38]
add ecx, 0x34
mov ecx, dword [ecx]
lea edi, [edx + 0x12]
add eax, 0x50
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x28]
add edi, ecx
add edx, 2
mov dword [eax], edi
mov dword [eax + 4], edx
lea ecx, [edi + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push esi
mov eax, ebx
call fcn.00487e90
mov eax, dword [eax + 0x44]
push eax
push ecx
push esi
mov eax, ebx
call fcn.00487e90
add esp, 4
add eax, 4
call fcn.00437690
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov eax, dword [eax]
push ecx
lea edx, [edi + 0x10]
sub edx, edi
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x108]
mov edx, dword [edx]
mov edx, dword [edx + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0x108]
add eax, 0xc
push edi
push eax
call edx
push esi
mov eax, ebx
call fcn.00487e90
cmp dword [eax + 0x48], 0xffffffff
jle 0x4142a8
push esi
mov eax, ebx
call fcn.00487e90
mov eax, dword [eax + 0x48]
push eax
push ecx
push esi
mov eax, ebx
call fcn.00487e90
add esp, 4
add eax, 0x24
call fcn.00437690
mov ecx, dword [ebp + 0x108]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0x108]
add eax, 0xc
push edi
push eax
call edx
add dword [esp + 0x28], 0x12
sub esi, 1
jns 0x4141a8
mov edx, dword [esp + 0x14]
lea ecx, [edx + 0x390]
xor edi, edi
mov eax, ecx
mov dword [esp + 0x28], edi
call fcn.004a68c0
test eax, eax
je 0x4142de
cmp dword [edx + 0x88], 2
je 0x4142de
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x24], 0
je 0x41451d
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0xfc]
mov edx, dword [ecx]
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x20]
sub ebx, dword [esi + 0x18]
and edx, 0x1000
push edx
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x1b0]
call fcn.004a6da0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xfc]
mov eax, dword [eax]
test al, 2
je 0x4144df
cmp dword [esi + 0x8c], 0x200
jne 0x414500
jmp 0x4144f3
cmp dword [ebx + 0xd0], edi
je 0x414108
lea esi, [ebp + 0x280]
jmp 0x414108
lea esi, [ebp + 0x2e0]
cmp dword [ebx + 0xd0], edi
je 0x41436e
lea esi, [ebp + 0x310]
lea ecx, [esp + 0x24]
push ecx
push ebp
mov ecx, ebx
mov dword [esp + 0x24], esi
call fcn.00422f70
mov dword [esp + 0x18], eax
cmp eax, edi
je case.default.0x4140ae
add eax, 0xa4
push eax
lea ecx, [ebx + 0xa4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
jmp case.default.0x4140ae
push 0x34
lea edx, [esp + 0x90]
push edi
push edx
call sub.MSVCR90.dll_memset
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
add esp, 0xc
lea ecx, [ebx + 0x48]
lea eax, [esp + 0xc0]
mov dword [esp + 0x8c], 0x34
mov dword [esp + 0x6c], 0x20
call fcn.004bb950
mov edx, dword [ebx + 0x3c]
mov esi, eax
mov eax, dword [ebx + 0x34]
sub edx, eax
mov ecx, 8
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x38]
mov esi, dword [esp + 0xf0]
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0xd0]
neg eax
sbb eax, eax
mov dword [esp + 0xa4], edx
and eax, 0x10
or eax, dword [ebx + 0x98]
mov dword [esp + 0x9c], ecx
mov ecx, dword [ebx + 0x3a8]
lea edx, [esp + 0x6c]
mov dword [esp + 0xac], edx
mov edx, dword [esi]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x98], eax
mov eax, dword [edx + 0x24]
mov ecx, esi
mov dword [esp + 0x90], 2
call eax
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0x3b0]
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb4], 0x41d8b0
mov dword [esp + 0xb8], ebp
test eax, eax
je 0x4144d1
mov ecx, dword [ebx + 0x3ac]
push ecx
lea edx, [esp + 0x90]
push 0
push edx
call eax
add esp, 0xc
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
jmp 0x4149ab
test al, 1
je 0x414500
test eax, 0x800
je 0x4144f3
cmp dword [esi + 0xd0], 0
je 0x414500
mov edi, dword [esi + 0x1c]
sub edi, dword [esi + 0x14]
add edi, 8
mov dword [esp + 0x28], edi
test al, 8
jne 0x41451d
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x38]
cmp ecx, 0x14
jle 0x41451d
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x1c]
lea eax, [edi + edx - 8]
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
add ecx, dword [edi + 8]
sub eax, dword [edi + 0x10]
mov esi, dword [edi + 0x40]
lea ebx, [edi + 0x34]
mov dword [esp + 0x40], edx
add edx, 0x14
cmp dword [esp + 0x30], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
je 0x41455b
sub eax, 0x20
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0xf0]
mov ecx, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push ecx
mov ecx, esi
call edx
cmp dword [edi + 0x88], 1
je 0x4145f6
mov eax, dword [edi + 0x8c]
cmp eax, 0x200
je 0x4145d9
cmp eax, 0x500
je 0x4145bc
cmp eax, 0x600
je 0x41459f
mov eax, dword [ebp + 0x12c]
jmp 0x4145fc
mov ecx, dword [ebp + 0x138]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x18]
push ecx
mov ecx, esi
call edx
jmp 0x414600
mov eax, dword [ebp + 0x134]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
jmp 0x414600
mov eax, dword [ebp + 0x130]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, esi
call edx
jmp 0x414600
mov eax, dword [ebp + 0x128]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
push 0x8824
push eax
lea ecx, [esp + 0x44]
push ecx
lea eax, [edi + 0xa0]
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x30], 0
je 0x41462b
add dword [esp + 0x44], 0x20
mov eax, dword [ebp + 0x108]
push 2
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push edi
call fcn.00413840
mov edx, dword [esp + 0x110]
add esp, 0x14
test dword [edx], 0x200
je 0x41466a
mov eax, dword [ebp + 0x108]
push 3
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push edi
call fcn.00413840
add esp, 0x14
cmp dword [esp + 0x30], 0
je 0x414709
xor eax, eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
push ebp
lea edi, [esp + 0x34]
lea ebx, [esp + 0x20]
call fcn.00412c90
lea ecx, [esp + 0x34]
call dword [0x55a6c4]
mov dword [esp + 0xe8], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x3c]
push str.__d__d_
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov ecx, dword [ebp + 0x128]
mov eax, dword [esi]
sub dword [esp + 0x54], 2
add esp, 0x10
push 0x826
push ecx
lea edx, [esp + 0x44]
push edx
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xfc]
mov eax, dword [eax]
test al, 4
je 0x4147a8
and eax, 0x400
mov ebx, 0x10
je 0x414740
cmp dword [ebp + 0x10c], 1
jne 0x414740
lea ecx, [edi + 0xa4]
mov ebx, 0x20
mov dword [esp + 0x18], ecx
jmp 0x414763
test eax, eax
je 0x414759
cmp dword [ebp + 0x10c], 1
jle 0x414759
lea edx, [edi + 0xb0]
mov dword [esp + 0x18], edx
jmp 0x414763
lea eax, [edi + 0xa4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push ecx
mov ecx, esi
call edx
cmp dword [edi + 0x8c], 0x200
jne 0x414788
mov eax, dword [ebp + 0x140]
jmp 0x41478e
mov eax, dword [ebp + 0x13c]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
or ebx, 0x40800
push ebx
push eax
mov eax, dword [esp + 0x20]
add edi, 0x24
push edi
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0xfc]
test dword [eax], 0x200
jne 0x414902
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x110]
add esi, 5
sub edi, 1
js 0x414902
mov ebx, eax
add ebx, 0xf4
lea esp, [esp]
push edi
mov eax, ebx
call fcn.00487e90
cmp dword [eax + 0x4c], 3
jne 0x4148f9
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x3c]
sub edx, dword [eax + 0x34]
lea ecx, [esi + 0x12]
sub edx, dword [eax + 0x10]
mov dword [esp + 0x18], ecx
cmp ecx, edx
jge 0x414902
push edi
mov eax, ebx
call fcn.00487e90
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x38]
lea edx, [ecx + 2]
add eax, 0x50
add ecx, 0x12
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax], esi
mov dword [eax + 4], ecx
lea edx, [esi + 0x10]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
push edi
mov eax, ebx
call fcn.00487e90
mov eax, dword [eax + 0x44]
push eax
push ecx
push edi
mov eax, ebx
call fcn.00487e90
add esp, 4
add eax, 4
call fcn.00437690
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
mov eax, dword [eax]
push ecx
lea edx, [esi + 0x10]
sub edx, esi
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x108]
mov edx, dword [edx]
mov edx, dword [edx + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x108]
add eax, 0xc
push esi
push eax
call edx
push edi
mov eax, ebx
call fcn.00487e90
cmp dword [eax + 0x48], 0xffffffff
jle 0x4148f5
push edi
mov eax, ebx
call fcn.00487e90
mov eax, dword [eax + 0x48]
push eax
push ecx
push edi
mov eax, ebx
call fcn.00487e90
add esp, 4
add eax, 0x24
call fcn.00437690
mov ecx, dword [ebp + 0x108]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x108]
add eax, 0xc
push esi
push eax
call edx
mov esi, dword [esp + 0x18]
sub edi, 1
jns 0x4147e0
mov eax, dword [esp + 0xfc]
mov eax, dword [eax]
test al, 1
je 0x414998
test al, 2
mov eax, dword [esp + 0x14]
je 0x41492b
cmp dword [eax + 0x8c], 0x200
jne 0x4149ab
mov edx, dword [esp + 0x38]
test edx, edx
je 0x414998
mov ebx, dword [eax + 0x20]
sub ebx, dword [eax + 0x18]
mov ecx, dword [ebp + 0x108]
mov edi, dword [ecx]
lea esi, [eax + 0x14]
mov eax, dword [eax + 0x18]
push ebx
mov ebx, dword [esi + 8]
sub ebx, dword [esi]
push ebx
push eax
mov eax, dword [esi]
push eax
push edx
mov edx, dword [edi + 0x50]
call edx
mov eax, dword [esp + 0xfc]
test byte [eax], 0x80
je 0x414998
push 1
push 1
push esi
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [ebp + 0x108]
mov eax, 3
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x1a0]
mov edx, dword [ecx]
mov edx, dword [edx + 0x4c]
push 1
push eax
lea eax, [esp + 0x6c]
push eax
push esi
call edx
mov ecx, dword [esp + 0xf0]
mov eax, dword [ecx]
mov edx, dword [esp + 0x60]
mov eax, dword [eax + 0x34]
push edx
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xcc]
test eax, eax
je 0x4149e4
mov edx, ecx
cmp dword [edx + 0xc0], 0
je 0x4149e4
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0xf8]
push ecx
push edx
push eax
mov eax, dword [esp + 0xfc]
push eax
mov ecx, ebp
call fcn.00413f50
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xc8]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x413f94
xor eax, eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 0x10