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

Disassembly:
push 0xffffffffffffffff
push 0x45b0b7
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 0x404b48
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push 0x4648b0
push eax
call dword [ecx]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404b48
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [ecx + 0xc]
cmp word [esp + 0x4c], bx
je 0x404445
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0x46481c
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], 0x4647f4
call fcn.004594a6
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x98], 1
je 0x404b32
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x404b32
cmp dword [edi + 0x5c], ebx
jne 0x40446c
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.004037f0
mov dword [edi + 0x5c], eax
jmp 0x4044d5
lea esi, [edi + 0x60]
push esi
lea ecx, [esp + 0xa8]
call fcn.00434080
test eax, eax
mov ebp, dword [esp + 0xb0]
jne 0x404496
mov edx, dword [ebp + 8]
mov ecx, dword [ebp]
mov eax, dword [edi + 0x6c]
sub edx, ecx
cmp edx, eax
je 0x4044d5
mov ecx, dword [edi + 0x5c]
cmp ecx, ebx
je 0x4044a4
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.004037f0
mov dword [edi + 0x5c], eax
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
call fcn.00434060
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp]
mov dword [edi + 0x6c], ecx
cmp dword [edi + 0x5c], ebx
jne 0x4044f9
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x98], 0
je 0x404b48
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x404b48
mov ecx, dword [edi + 0x84]
cmp ecx, ebx
je 0x4045f6
mov eax, dword [edi + 0x30]
mov edx, dword [esp + 0xa8]
lea esi, [eax + edx]
call fcn.004058a0
cmp esi, eax
jl 0x40452a
mov ecx, dword [edi + 0x84]
call fcn.004058a0
mov esi, eax
mov ecx, dword [esp + 0xac]
mov eax, dword [edi + 0x30]
lea ebx, [eax + ecx]
mov ecx, dword [edi + 0x84]
call fcn.00405890
cmp ebx, eax
jle 0x40454a
mov eax, ebx
jmp 0x404555
mov ecx, dword [edi + 0x84]
call fcn.00405890
push esi
push eax
lea ecx, [esp + 0x80]
call fcn.00433f60
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 4
call fcn.00433fd0
test eax, eax
jle 0x4045e3
sub esp, 0xc
lea edx, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00433fa0
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.00433fd0
imul esi
lea ecx, [esp + 0xb0]
mov esi, eax
mov ebx, edx
call fcn.00433fd0
cdq
push edx
push eax
push ebx
push esi
call fcn.0045a150
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push eax
call dword [edx + 0x1c]
mov ecx, dword [edi + 0x84]
push eax
call fcn.00405ad0
lea ecx, [esp + 0x78]
mov byte [esp + 0x98], 1
call fcn.00433fc0
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 0x404632
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 0x404638
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 0x4049e7
lea ecx, [edx*8]
mov dword [esp + 0x40], ecx
jmp 0x404672
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 0x4049c8
fld dword [esp + 0xc0]
mov edx, dword [esp + 0x6c]
fadd st(0), st(0)
sub eax, edx
fld dword [0x4647e0]
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 [0x4647e0]
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.00433fd0
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.0045a150
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 0x404794
push esi
call fcn.0040a7f0
fmul dword [esp + 0xbc]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x4047a7
push esi
call fcn.0040a7f0
jmp 0x4047ad
fld dword [0x4647dc]
fld st(0)
fadd st(1)
fcom dword [0x4647e0]
fnstsw ax
test ah, 5
jnp 0x4047c6
fstp st(0)
fld dword [0x4647e0]
fld dword [0x4647e0]
fcomp dword [esp + 0x54]
fnstsw ax
test ah, 5
jp 0x4047df
fld dword [0x4647e0]
jmp 0x4047e3
fld dword [esp + 0x54]
fabs
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fsubr dword [0x4647e0]
fadd st(0), st(0)
fcom dword [0x4647e0]
fnstsw ax
test ah, 5
jnp 0x40480a
fstp st(0)
fld dword [0x4647e0]
fld dword [0x4647e0]
fcomp dword [esp + 0x64]
fnstsw ax
test ah, 5
jp 0x404823
fld dword [0x4647e0]
jmp 0x404827
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.0x404850
mov eax, dword [esp + 0x44]
cmp eax, 7
ja case.default.0x404850
jmp dword [eax*4 + 0x404b7c]
fld dword [esp + 0x1c]
fmul dword [esp + 0x30]
jmp 0x40487d
fld dword [esp + 0x58]
fmul dword [esp + 0x30]
jmp 0x40487d
fld dword [esp + 0x58]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x30]
jmp 0x40487d
fld dword [esp + 0x30]
fld dword [esp + 0x14]
fmul st(1)
fld dword [0x4647e0]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x4048b1
fld st(0)
fld dword [0x464910]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x4048b1
fstp st(0)
mov dword [esp + 0x14], 0xbf800000
jmp 0x4048d0
fld dword [0x4647e0]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4048cc
fstp st(0)
mov dword [esp + 0x14], 0x3f800000
jmp 0x4048d0
fstp dword [esp + 0x14]
fmul dword [esp + 0x84]
fld dword [0x4647e0]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x404903
fld st(0)
fld dword [0x464910]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x404903
fstp st(0)
fld dword [0x464910]
jmp 0x40491a
fld dword [0x4647e0]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x40491a
fstp st(0)
fld dword [0x4647e0]
fld dword [esp + 0x14]
fmul dword [0x4647dc]
fsubr qword [0x464908]
fmul qword [esp + 0x5c]
call fcn.0045a0cc
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
add eax, esi
dec ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jg 0x40494a
mov dword [esp + 0x14], eax
fmul dword [0x4647dc]
fsubr qword [0x464908]
fmul qword [esp + 0x5c]
call fcn.0045a0cc
add eax, esi
mov esi, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x40496c
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 0x404703
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 0x40466e
mov ecx, edi
call fcn.004041f0
cmp eax, 0x64
je 0x404b32
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x464888
push 0xd
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 7
call fcn.00413780
mov eax, dword [esp + 0x24]
test eax, eax
mov esi, dword [esp + 0xa0]
je 0x404a3e
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, edi
call fcn.004041f0
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 0x404b08
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], 0x4647f4
call fcn.004594a6
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 0x404b48
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x98], 0xffffffff
call fcn.00433fc0
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret 0x24