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

Disassembly:
push 0xffffffffffffffff
push 0x54aa9c
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0xcc]
mov eax, 1
xor edi, edi
cmp dword [0x5c6ff0], eax
jne 0x412e81
cmp dword [0x5c6ff4], eax
jne 0x412e81
mov ecx, dword [ecx + 0x120]
cmp dword [ecx - 0xc], edi
jne 0x412e81
mov dword [esp + 0xe4], eax
xor esi, esi
cmp dword [0x5c6ff8], esi
je 0x412eaf
cmp edi, esi
je 0x412eaf
test dword [ebx + 0x98], 0x10000
jne 0x412eaf
mov eax, dword [esp + 0xd4]
add dword [eax], 8
mov eax, dword [esp + 0xe0]
add dword [eax], 8
mov ecx, dword [ebx + 0x98]
mov eax, dword [ebx + 0x88]
mov edi, ecx
shr edi, 0x10
and edi, 1
dec eax
mov dword [esp + 0x24], edi
lea ebp, [ebx + 0x34]
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], esi
cmp eax, 3
ja case.default.0x412ed8
jmp dword [eax*4 + 0x413704]
cmp dword [ebx + 0xcc], esi
jne 0x412efa
push ebp
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [ebx + 0x44], 0
jmp 0x4136d1
push 0x55d1e4
lea ecx, [esp + 0x34]
call dword [0x55a504]
mov dword [esp + 0xc0], 0
lea edx, [esp + 0x30]
push edx
mov edi, ebx
call fcn.00418670
mov edi, eax
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
test edi, edi
setne al
mov dword [esp + 0x2c], eax
mov edi, dword [sym.imp.USER32.dll_SetRectEmpty]
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x14]
push eax
call edi
push ebp
call edi
mov eax, dword [esp + 0xd0]
mov ecx, dword [eax]
mov eax, dword [esp + 0xd4]
mov dword [ebp], ecx
mov edx, dword [eax]
mov ecx, dword [esp + 0xd8]
mov dword [ebp + 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
sub edx, dword [ecx + 0x398]
lea edi, [esi + 0xf4]
mov dword [ebp + 8], edx
mov edx, dword [eax]
add edx, 0x14
mov dword [ebp + 0xc], edx
test esi, esi
jne 0x412fa3
lea edi, [ebx + 0xf4]
mov esi, dword [edi + 0x1c]
sub esi, 1
js 0x412fc7
jmp 0x412fb0
push esi
mov eax, edi
call fcn.00487e90
cmp dword [eax + 0x4c], 1
jne 0x412fc2
add dword [ebx + 8], 0x12
sub esi, 1
jns 0x412fb0
mov eax, dword [ebx + 8]
xor esi, esi
cmp eax, esi
je 0x412fd6
add eax, 2
mov dword [ebx + 8], eax
lea ecx, [ebx + 0x390]
mov eax, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call fcn.004a68c0
test eax, eax
je 0x412ff8
cmp dword [ebx + 0x88], 2
jne 0x412ffc
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x4133f9
mov eax, ecx
call fcn.004a6b70
test eax, eax
je 0x4133f9
mov eax, ecx
call fcn.004a6b60
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, ecx
call fcn.004a6b70
mov dword [esp + 0x18], eax
fidiv dword [esp + 0x18]
mov eax, dword [esp + 0xdc]
mov ecx, dword [eax]
fstp dword [esp + 0x18]
fld1
test ecx, 0x1000
je 0x41329f
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
fild dword [eax + 0x198]
fld qword [0x5928b0]
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
jmp 0x4132de
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, ebx
call fcn.00422f70
cmp dword [esp + 0xe4], 0
mov esi, eax
je case.default.0x412ed8
test dword [ebx + 0x98], 0x20000
jne case.default.0x412ed8
test esi, esi
je 0x4130c8
cmp dword [esi + 0x8c], 0x300
jb case.default.0x412ed8
push ebp
mov dword [ebx + 0x44], 0
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esp + 0x2c], 1
jmp 0x41366f
cmp dword [esp + 0xe4], esi
je case.default.0x412ed8
cmp dword [ebx + 0x8c], 0x300
jb case.default.0x412ed8
test ecx, 0x20000
jne case.default.0x412ed8
push ebp
mov dword [ebx + 0x44], 0
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x41366f
cmp dword [esp + 0xe4], esi
je 0x41314f
cmp dword [ebx + 0x8c], 0x300
jb 0x41314f
test ecx, 0x20000
jne 0x41314f
push ebp
mov dword [ebx + 0x44], 0
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x41366f
push 0x34
lea eax, [esp + 0x68]
push 0
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
add esp, 0xc
lea ecx, [ebx + 0x48]
lea eax, [esp + 0x98]
mov dword [esp + 0x64], 0x34
mov dword [esp + 0x44], 0x20
call fcn.004bb950
mov edx, dword [esp + 0xd4]
mov esi, eax
mov ecx, 8
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xd0]
mov eax, dword [ecx]
mov ecx, dword [edx]
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0xd8]
mov edx, dword [ecx + 8]
sub edx, dword [ecx]
mov dword [esp + 0x78], eax
sub edx, eax
mov eax, dword [ebx + 0x3a8]
sub edx, 4
mov dword [esp + 0x7c], edx
mov edx, dword [ebx + 0xd0]
neg edx
sbb edx, edx
and edx, 0x10
or edx, dword [ebx + 0x98]
mov dword [esp + 0x88], eax
mov eax, dword [esi]
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0x24]
mov ecx, esi
mov dword [esp + 0x68], 1
call edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x3b0]
mov dword [esp + 0x94], esi
mov dword [esp + 0x8c], 0x41d8b0
test eax, eax
je 0x413262
mov ecx, dword [ebx + 0x3ac]
push ecx
lea edx, [esp + 0x68]
push 0
push edx
call eax
add esp, 0xc
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov esi, dword [esp + 0xd4]
mov eax, dword [esi]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0xd0]
mov ecx, dword [ecx]
add edx, eax
push edx
mov edx, dword [esp + 0x80]
add edx, ecx
push edx
push eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x41361c
fld dword [esp + 0x18]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x413054
mov edx, dword [esp + 0x1c]
fild dword [edx + 0x198]
fld qword [0x5928b0]
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld st(0)
fdivrp st(3)
fxch st(2)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fxch st(2)
fld dword [0x5929c0]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4132f9
fstp st(1)
fst dword [esp + 0x18]
fld dword [esp + 0x18]
fxch st(1)
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x413373
fstp st(3)
fxch st(2)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fxch st(2)
test cl, 2
je 0x413377
cmp dword [ebx + 0x8c], 0x200
jne 0x4133f3
fld st(2)
fadd st(2)
call fcn.005333c0
fld st(0)
faddp st(2)
mov esi, eax
fxch st(1)
mov dword [esp + 0x20], esi
call fcn.005333c0
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp + 4]
add ecx, 4
mov dword [ebx + 0x18], ecx
fisubr dword [ebp + 8]
mov dword [esp + 0x28], eax
call fcn.005333c0
mov dword [ebx + 0x14], eax
fiadd dword [ebp + 4]
call fcn.005333c0
mov dword [ebx + 0x20], eax
mov edx, dword [ebp + 8]
sub edx, 4
mov dword [ebx + 0x1c], edx
jmp 0x4133f9
fstp st(0)
jmp 0x413310
test cl, 1
je 0x4133d7
test ecx, 0x800
je 0x41338c
cmp dword [ebx + 0xd0], esi
je 0x4133d7
fld st(2)
fadd st(2)
call fcn.005333c0
fld st(0)
faddp st(2)
mov esi, eax
fxch st(1)
mov dword [esp + 0x20], esi
call fcn.005333c0
mov dword [ebx + 0x10], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
add eax, 4
mov dword [ebx + 0x18], eax
fisubr dword [ebp + 8]
call fcn.005333c0
mov dword [ebx + 0x14], eax
fiadd dword [ebp + 4]
call fcn.005333c0
mov dword [ebx + 0x20], eax
mov ecx, dword [ebp + 8]
sub ecx, 4
mov dword [ebx + 0x1c], ecx
jmp 0x4133f9
fstp st(2)
lea eax, [ebx + 0x14]
fstp st(1)
push eax
fstp st(0)
call dword [sym.imp.USER32.dll_SetRectEmpty]
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
jmp 0x4133f9
fstp st(2)
fstp st(1)
fstp st(0)
mov edx, dword [ebp]
mov dword [ebx + 0x24], edx
mov eax, dword [ebp + 4]
lea edi, [ebx + 0x24]
mov dword [edi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [edi + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [edi + 0xc], edx
add dword [edi + 4], 0x14
mov eax, dword [edi + 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 8]
sub eax, dword [ebx + 0x10]
mov dword [edi + 8], eax
mov ecx, dword [ebx + 0xa4]
cmp dword [ecx - 0xc], 0
lea eax, [ebx + 0xa4]
je 0x4134e8
mov edx, dword [esp + 0xdc]
mov ecx, dword [edx]
test cl, 4
je 0x4134e8
and ecx, 0x400
mov edx, dword [esp + 0x1c]
mov esi, 0x10
je 0x413470
cmp dword [edx + 0x10c], 1
jne 0x413470
mov esi, 0x20
jmp 0x41348f
test ecx, ecx
je 0x41348f
mov ecx, dword [edx + 0x10c]
cmp ecx, 1
jle 0x41348f
push ecx
call fcn.00418230
mov edx, dword [esp + 0x1c]
lea eax, [ebx + 0xb0]
mov ecx, dword [esp + 0xdc]
test dword [ecx], 0x100
mov dword [esp + 0x18], eax
je 0x4134a5
add dword [edi], 0x14
cmp dword [ebx + 0x8c], 0x200
jne 0x4134b9
mov edx, dword [edx + 0x140]
jmp 0x4134bf
mov edx, dword [edx + 0x13c]
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
or esi, 0x40c00
push esi
push edx
mov edx, dword [esp + 0x20]
push edi
push edx
call eax
mov ecx, dword [edi + 0xc]
mov esi, dword [esp + 0x20]
add ecx, 2
mov dword [ebp + 0xc], ecx
test esi, esi
je 0x41353e
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 0xc]
sub eax, edx
cmp eax, esi
jge 0x4134fe
lea ecx, [edx + esi]
mov dword [ebp + 0xc], ecx
mov eax, dword [esp + 0xdc]
test byte [eax], 8
jne 0x41353e
mov ecx, dword [ebx + 0x20]
sub ecx, dword [ebx + 0x18]
mov eax, dword [ebp + 0xc]
sub eax, edx
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0xd4]
mov edx, dword [edx]
sar eax, 1
add eax, edx
mov dword [ebx + 0x18], eax
add eax, ecx
mov dword [ebx + 0x20], eax
sub eax, dword [ebx + 0x38]
cmp eax, 0x14
jle 0x41353e
mov eax, dword [esp + 0x28]
sub dword [ebx + 0x10], eax
mov esi, dword [ebx + 0x110]
sub esi, 1
js 0x413567
lea edi, [ebx + 0xf4]
nop
push esi
mov eax, edi
call fcn.00487e90
cmp dword [eax + 0x4c], 2
jne 0x413562
add dword [ebx + 0x10], 0x12
sub esi, 1
jns 0x413550
cmp dword [ebx + 0x88], 1
je 0x4135bb
mov eax, dword [ebx + 0x8c]
cmp eax, 0x200
je 0x4135af
cmp eax, 0x500
je 0x4135a3
cmp eax, 0x600
je 0x413597
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x12c]
jmp 0x4135c5
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x138]
jmp 0x4135c5
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x134]
jmp 0x4135c5
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x130]
jmp 0x4135c5
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x128]
mov ecx, dword [ebp + 8]
sub ecx, dword [ebx + 0x10]
mov eax, dword [ebp]
add eax, dword [ebx + 8]
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 0xc]
push 0x48c10
push edx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xd0]
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
push edx
mov dword [esp + 0x44], esi
lea edx, [ebx + 0xa0]
add esi, 0x14
mov dword [esp + 0x4c], edi
push edx
mov dword [esp + 0x50], esi
call eax
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0xd4]
mov dword [ebx + 0xc], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 4]
mov eax, dword [esp + 0xe0]
add edx, 4
add dword [eax], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 4]
add eax, 4
add dword [esi], eax
mov esi, dword [esi]
cmp esi, 0xfffffff6
jl 0x413664
mov ecx, dword [ebp + 4]
sub ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0xd8]
lea edx, [ecx + esi - 4]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
cmp edx, ecx
jg 0x413664
mov dword [ebx + 0x44], 1
jmp 0x41366b
mov dword [ebx + 0x44], 0
mov edi, dword [esp + 0x24]
cmp dword [ebx + 0xc0], 0
je 0x4136d1
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x4136d1
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x394]
mov esi, dword [esp + 0xd0]
add edx, dword [esi]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0xe4]
push edx
mov edx, dword [esp + 0xe4]
push edx
mov edx, dword [esp + 0xe4]
push edx
mov edx, dword [esp + 0xe4]
push edx
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0xe4]
push eax
call fcn.00412e20
mov ebx, dword [ebx + 0xc8]
test ebx, ebx
jne 0x412e81
mov ecx, dword [esp + 0xe0]
mov eax, dword [ecx]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 0x20