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

Disassembly:
push 0xffffffffffffffff
push 0x45c727
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x24]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x98], 1
mov dword [esp + 0x28], ebx
je 0x404b88
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x4658d8
push eax
call dword [ecx]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404b88
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [ecx + 0xc]
cmp word [esp + 0x4c], bx
je 0x404485
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0x465844
mov esi, dword [esp + 0xb0]
xor edx, edx
mov dx, word [esi + 0xc]
sub dx, word [esi + 4]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov ax, word [esi + 8]
sub ax, word [esi]
mov edi, dword [ecx]
push edx
mov byte [esp + 0xa0], 3
push eax
mov eax, dword [esp + 0xb4]
cdq
push edx
push eax
mov eax, dword [esp + 0xc0]
cdq
push edx
push eax
push ecx
call dword [edi + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push ebx
mov edx, dword [esp + 0x14]
mov ebp, dword [edx]
mov ebx, edi
neg ebx
push ebx
mov ebx, dword [esp + 0x40]
push ebx
push edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
push 0
sub edi, eax
push edi
sub esi, ecx
push esi
push eax
mov eax, dword [esp + 0xc0]
push ecx
mov ecx, dword [eax + 4]
push ecx
push edx
call dword [ebp + 0x20]
lea ecx, [esp + 0x20]
mov byte [esp + 0x98], 2
mov dword [esp + 0x20], 0x46581c
call fcn.0045ab26
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x98], 1
je 0x404b72
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x404b72
cmp dword [edi + 0x5c], ebx
jne 0x4044ac
mov ebp, dword [esp + 0xb0]
mov eax, dword [ebp + 8]
sub eax, dword [ebp]
push eax
lea ecx, [esp + 0xa8]
push ecx
mov ecx, edi
call fcn.00403830
mov dword [edi + 0x5c], eax
jmp 0x404515
lea esi, [edi + 0x60]
push esi
lea ecx, [esp + 0xa8]
call fcn.004347d0
test eax, eax
mov ebp, dword [esp + 0xb0]
jne 0x4044d6
mov edx, dword [ebp + 8]
mov ecx, dword [ebp]
mov eax, dword [edi + 0x6c]
sub edx, ecx
cmp edx, eax
je 0x404515
mov ecx, dword [edi + 0x5c]
cmp ecx, ebx
je 0x4044e4
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp]
push ecx
lea edx, [esp + 0xa8]
push edx
mov ecx, edi
call fcn.00403830
mov dword [edi + 0x5c], eax
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
call fcn.004347b0
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp]
mov dword [edi + 0x6c], ecx
cmp dword [edi + 0x5c], ebx
jne 0x404539
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x98], 0
je 0x404b88
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x404b88
mov ecx, dword [edi + 0x84]
cmp ecx, ebx
je 0x404636
mov eax, dword [edi + 0x30]
mov edx, dword [esp + 0xa8]
lea esi, [eax + edx]
call fcn.004058f0
cmp esi, eax
jl 0x40456a
mov ecx, dword [edi + 0x84]
call fcn.004058f0
mov esi, eax
mov ecx, dword [esp + 0xac]
mov eax, dword [edi + 0x30]
lea ebx, [eax + ecx]
mov ecx, dword [edi + 0x84]
call fcn.004058e0
cmp ebx, eax
jle 0x40458a
mov eax, ebx
jmp 0x404595
mov ecx, dword [edi + 0x84]
call fcn.004058e0
push esi
push eax
lea ecx, [esp + 0x80]
call fcn.004346b0
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 4
call fcn.00434720
test eax, eax
jle 0x404623
sub esp, 0xc
lea edx, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.004346f0
mov esi, dword [ebp + 8]
mov edx, dword [ebp]
mov eax, dword [edi + 0x5c]
lea ecx, [esp + 0x84]
sub esi, edx
mov byte [esp + 0xa4], 4
mov dword [esp + 0x24], eax
call fcn.00434720
imul esi
lea ecx, [esp + 0xb0]
mov esi, eax
mov ebx, edx
call fcn.00434720
cdq
push edx
push eax
push ebx
push esi
call fcn.0045b7c0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push eax
call dword [edx + 0x1c]
mov ecx, dword [edi + 0x84]
push eax
call fcn.00405b20
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 1
call fcn.00434710
xor ebx, ebx
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [ecx + 0x2c]
cmp dword [edi + 0x58], ebx
movsx esi, word [esp + 0x2c]
jl 0x404672
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push edx
mov esi, 1
push eax
mov dword [esp + 0x44], esi
call dword [ecx + 0x2c]
mov eax, dword [edi + 0x58]
movsx ecx, word [esp + 0x48]
cdq
idiv ecx
jmp 0x404678
mov dword [esp + 0x3c], esi
xor edx, edx
test esi, esi
mov eax, ebp
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x44], ebx
jle 0x404a27
lea ecx, [edx*8]
mov dword [esp + 0x40], ecx
jmp 0x4046b2
mov ebx, dword [esp + 0x44]
mov ecx, dword [ebp + 4]
mov esi, dword [ebp + 0xc]
sub esi, ecx
mov eax, esi
imul eax, ebx
cdq
idiv dword [esp + 0x3c]
add eax, ecx
mov dword [esp + 0x6c], eax
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
imul eax, esi
cdq
idiv dword [esp + 0x3c]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov esi, ebx
add eax, ecx
xor ecx, ecx
cmp esi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
jge 0x404a08
fld dword [esp + 0xc0]
mov edx, dword [esp + 0x6c]
fadd st(0), st(0)
sub eax, edx
fld dword [0x465808]
mov dword [esp + 0x1c], eax
movsx eax, word [esp + 0x2c]
fsub st(1)
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x40]
shl eax, 3
fstp dword [esp + 0x54]
mov dword [esp + 0x88], eax
mov dword [esp + 0x34], ecx
fadd dword [0x465808]
fstp dword [esp + 0x64]
fild dword [esp + 0x1c]
fstp qword [esp + 0x5c]
mov esi, dword [ebp + 8]
mov eax, dword [ebp]
lea ecx, [esp + 0xa4]
sub esi, eax
call fcn.00434720
imul dword [esp + 0x50]
mov ecx, eax
mov eax, edx
mov dword [esp + 0x1c], eax
mov eax, esi
cdq
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
call fcn.0045b7c0
mov edx, dword [edi + 0x30]
mov ecx, dword [esp + 0xac]
mov esi, eax
add esi, edx
mov edx, dword [esp + 0xbc]
add esi, ecx
mov ecx, dword [edi + 0x5c]
mov eax, dword [ecx]
mov dword [esp + 0x30], edx
call dword [eax + 0x1c]
mov ecx, dword [esp + 0x34]
fld dword [eax + ecx]
mov ecx, dword [edi + 0x5c]
mov edx, dword [ecx]
fstp dword [esp + 0x14]
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x34]
fld dword [eax + ecx + 4]
mov ecx, dword [esp + 0xb4]
test ecx, ecx
fstp dword [esp + 0x84]
je 0x4047d4
push esi
call fcn.0040a880
fmul dword [esp + 0xbc]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x4047e7
push esi
call fcn.0040a880
jmp 0x4047ed
fld dword [0x465804]
fld st(0)
fadd st(1)
fcom dword [0x465808]
fnstsw ax
test ah, 5
jnp 0x404806
fstp st(0)
fld dword [0x465808]
fld dword [0x465808]
fcomp dword [esp + 0x54]
fnstsw ax
test ah, 5
jp 0x40481f
fld dword [0x465808]
jmp 0x404823
fld dword [esp + 0x54]
fabs
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fsubr dword [0x465808]
fadd st(0), st(0)
fcom dword [0x465808]
fnstsw ax
test ah, 5
jnp 0x40484a
fstp st(0)
fld dword [0x465808]
fld dword [0x465808]
fcomp dword [esp + 0x64]
fnstsw ax
test ah, 5
jp 0x404863
fld dword [0x465808]
jmp 0x404867
fld dword [esp + 0x64]
mov eax, dword [edi + 0x24]
fabs
mov edx, dword [eax]
fmul st(1)
lea ecx, [esp + 0x10]
push ecx
fstp dword [esp + 0x5c]
push eax
fstp st(0)
call dword [edx + 0x2c]
cmp word [esp + 0x10], 1
jle case.default.0x404890
mov eax, dword [esp + 0x44]
cmp eax, 7
ja case.default.0x404890
jmp dword [eax*4 + 0x404bbc]
fld dword [esp + 0x1c]
fmul dword [esp + 0x30]
jmp 0x4048bd
fld dword [esp + 0x58]
fmul dword [esp + 0x30]
jmp 0x4048bd
fld dword [esp + 0x58]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x30]
jmp 0x4048bd
fld dword [esp + 0x30]
fld dword [esp + 0x14]
fmul st(1)
fld dword [0x465808]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x4048f1
fld st(0)
fld dword [0x465938]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x4048f1
fstp st(0)
mov dword [esp + 0x14], 0xbf800000
jmp 0x404910
fld dword [0x465808]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x40490c
fstp st(0)
mov dword [esp + 0x14], 0x3f800000
jmp 0x404910
fstp dword [esp + 0x14]
fmul dword [esp + 0x84]
fld dword [0x465808]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x404943
fld st(0)
fld dword [0x465938]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x404943
fstp st(0)
fld dword [0x465938]
jmp 0x40495a
fld dword [0x465808]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x40495a
fstp st(0)
fld dword [0x465808]
fld dword [esp + 0x14]
fmul dword [0x465804]
fsubr qword [0x465930]
fmul qword [esp + 0x5c]
call fcn.0045b73c
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
add eax, esi
dec ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jg 0x40498a
mov dword [esp + 0x14], eax
fmul dword [0x465804]
fsubr qword [0x465930]
fmul qword [esp + 0x5c]
call fcn.0045b73c
add eax, esi
mov esi, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x4049ac
mov esi, eax
mov ecx, dword [esp + 0xa0]
push esi
push ebx
lea edx, [esp + 0x80]
push edx
call sub.MFC71.DLL_CDC::MoveTo
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa0]
inc eax
push eax
push ebx
call sub.MFC71.DLL_CDC::LineTo
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x50]
add esi, edx
inc ebx
inc ecx
cmp ebx, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], ecx
jl 0x404743
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
add edx, 8
cmp eax, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
jl 0x4046ae
mov ecx, edi
call fcn.00404230
cmp eax, 0x64
je 0x404b72
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x4658b0
push 0xd
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 7
call fcn.00413870
mov eax, dword [esp + 0x24]
test eax, eax
mov esi, dword [esp + 0xa0]
je 0x404a7e
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, edi
call fcn.00404230
push eax
lea ecx, [esp + 0x14]
push 0x6b
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
push 6
mov ecx, esi
call sub.MFC71.DLL_CDC::SetTextAlign
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 0xc]
add eax, ecx
cdq
sub eax, edx
mov ebx, eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x14]
sar ebx, 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x5c]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x78], edx
add eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x88], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push 0
lea ecx, [esp + 0x14]
sub ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x94]
push ebp
push 4
push ebx
push eax
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esi]
push 0xd
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x404b48
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [esp + 0x20]
mov dword [edi + 0x5c], 0
mov byte [esp + 0x98], 6
mov dword [esp + 0x20], 0x46581c
call fcn.0045ab26
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x28]
test eax, eax
mov byte [esp + 0x98], 0
je 0x404b88
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x98], 0xffffffff
call fcn.00434710
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret 0x24