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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d4d11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov esi, ecx
jne 0x4ec536
mov dword [ebp + 8], 0x6283c8
jmp 0x4ec55d
mov ecx, esi
call fcn.004ed430
test al, al
mov dword [esi + 0x360], edi
je 0x4ec554
mov ecx, dword [esi + 0x364]
call fcn.004aed70
jmp 0x4ec55d
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x364], eax
mov ecx, esi
call fcn.004ed430
test al, al
jne 0x4ec7a4
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x4ec783
mov ecx, dword [esi + 0x364]
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.004ebd70
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x198]
add esp, 8
cmp eax, 3
je 0x4ec5a2
cmp eax, 2
jne 0x4ec600
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x74], eax
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edi
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0xa8], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x90]
lea edi, [esi + 0x2d0]
push ecx
mov ecx, edi
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], eax
call fcn.004b8150
lea edx, [esp + 0x84]
mov ecx, edi
push edx
call fcn.004b8150
fld qword [esp + 0x8c]
fsub qword [esp + 0x7c]
fld qword [esp + 0x84]
fsub qword [esp + 0x74]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
fpatan
fstp qword [esp + 0x1c]
fld qword [esi + 0x338]
fsub qword [esi + 0x328]
fld qword [esi + 0x330]
fsub qword [esi + 0x320]
mov dword [esi + 0x320], eax
mov eax, dword [esp + 0xa0]
mov dword [esi + 0x324], ecx
mov ecx, dword [esp + 0xa4]
fpatan
mov dword [esi + 0x328], edx
mov edx, dword [esp + 0xa8]
mov dword [esi + 0x32c], eax
mov eax, dword [esp + 0xac]
mov dword [esi + 0x330], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esi + 0x334], edx
mov dword [esi + 0x338], eax
mov dword [esi + 0x33c], ecx
lea ecx, [esp + 0x108]
fstp qword [esp + 0xc]
call fcn.004ccd50
fld qword [esp + 0xc]
fsub qword [esp + 0x1c]
sub esp, 8
lea ecx, [esp + 0x110]
mov dword [esp + 0x1e0], 0
fstp qword [esp]
call fcn.004b7630
lea edx, [esp + 0x108]
mov ecx, edi
push edx
call fcn.004b80e0
lea ecx, [esp + 0x108]
mov dword [esp + 0x1d8], 0xffffffff
call fcn.0042bd50
jmp 0x4ec7a4
cmp eax, 1
jne 0x4ec7a4
mov ecx, dword [esi + 0x364]
lea eax, [esi + 0x320]
push eax
push ecx
call fcn.004ebd70
add esp, 8
mov dword [esi + 0x130], eax
mov ecx, esi
call fcn.004ed430
mov edi, dword [ebp + 8]
test al, al
jne 0x4ec82f
test edi, edi
je 0x4ec82f
push esi
mov ecx, edi
call fcn.004f1c80
test al, al
je 0x4ec82f
mov ecx, esi
call fcn.004eb810
mov edx, dword [edi + 0x1c]
mov ecx, esi
push edx
call fcn.0050b450
lea ecx, [esp + 0x74]
call fcn.004ccd50
mov eax, dword [edi + 0x1c]
lea ecx, [esp + 0x74]
add eax, 0x2d0
mov dword [esp + 0x1d8], 1
push eax
call fcn.004b7e30
lea ecx, [esi + 0x2d0]
push ecx
lea ecx, [esp + 0x78]
call fcn.004b80e0
lea edx, [esp + 0x74]
mov ecx, esi
push edx
call fcn.0050c680
lea ecx, [esp + 0x74]
mov dword [esp + 0x1d8], 0xffffffff
call fcn.0042bd50
jmp 0x4eca28
mov ecx, esi
call fcn.004eba10
test al, al
jne 0x4ec851
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.004ed430
test al, al
jne 0x4eca28
mov ebx, dword [esi + 0x364]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x50], edi
call fcn.004afa60
test eax, eax
jle 0x4eca25
push edi
mov ecx, ebx
call fcn.004afa70
mov edi, eax
mov ecx, edi
call fcn.004b1ce0
cmp eax, 1
je 0x4ec8bd
mov ecx, edi
call fcn.004b1ce0
cmp eax, 2
je 0x4ec8bd
mov ecx, edi
call fcn.004b1ce0
cmp eax, 7
je 0x4ec8bd
mov ecx, edi
call fcn.004b1ce0
cmp eax, 8
jne 0x4eca09
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edx, [esp + 0x188]
mov dword [esp + 0x58], ecx
push edx
mov ecx, edi
mov dword [esp + 0x58], eax
call fcn.004b1c90
fld qword [eax]
fadd qword [esp + 0x54]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
lea edx, [esp + 0x158]
mov dword [esp + 0x48], ecx
push edx
mov ecx, edi
fstp qword [esp + 0x68]
mov dword [esp + 0x48], eax
call fcn.004b1c90
fld qword [eax + 8]
fadd qword [esp + 0x44]
lea ebx, [esi + 0x2d0]
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
fstp qword [esp + 0x70]
call fcn.004b8150
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call fcn.0050b0b0
mov edx, dword [edi]
lea ecx, [esp + 0x1b8]
mov dword [esp + 0xc4], eax
mov eax, dword [edi + 4]
push ecx
mov ecx, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.004b1c90
fld qword [eax]
fld qword [esp + 0x1c]
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
fsub st(1)
lea ecx, [esp + 0x1a0]
mov dword [esp + 0xc], edx
push ecx
mov ecx, edi
mov dword [esp + 0x14], eax
fstp qword [esp + 0x68]
fstp st(0)
call fcn.004b1c90
fld qword [eax + 8]
fld qword [esp + 0xc]
fsub st(1)
lea edx, [esp + 0x64]
mov ecx, ebx
push edx
fstp qword [esp + 0x70]
fstp st(0)
call fcn.004b8150
lea eax, [esp + 0x64]
mov ecx, esi
push eax
call fcn.0050b0b0
mov ecx, dword [esp + 0xc4]
cmp ecx, 0xffffffff
je 0x4eca09
cmp ecx, 0xfffffffe
jne 0x4eca09
cmp eax, 0xffffffff
jne 0x4eca09
add edi, 0xe8
lea ecx, [esp + 0xc8]
push edi
call fcn.004cead0
push 0xbff00000
lea ecx, [esp + 0xcc]
push 0
lea edx, [esp + 0x178]
push ecx
push edx
call fcn.004ce810
add esp, 0x10
lea ecx, [esp + 0xe0]
push eax
call fcn.004ceaa0
lea eax, [esp + 0xe0]
mov ecx, edi
push eax
call fcn.004ceb00
mov ecx, edi
call fcn.004ce170
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
inc edi
mov ecx, ebx
mov dword [esp + 0x50], edi
call fcn.004afa60
cmp edi, eax
jl 0x4ec87f
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x4eca33
xor ecx, ecx
jmp 0x4eca36
mov ecx, dword [eax + 0x78]
mov eax, dword [esi + 0x364]
push ecx
push eax
mov ecx, esi
call fcn.004ebbb0
mov eax, dword [ebp + 0xc]
mov edi, 2
cmp eax, edi
jne 0x4ecfe8
lea ecx, [esp + 0x18]
call sub.mfc42u.dll_CString::CString_3
lea ebx, [esi + 0x12c]
mov dword [esp + 0x1d8], edi
mov ecx, ebx
call sub.mfc42u.dll_CString::Empty
mov ecx, esi
call fcn.0050b080
fsubr qword [esi + 0x190]
fabs
fcomp qword [0x5e7968]
fnstsw ax
test ah, 0x41
jne 0x4ecb06
mov ecx, esi
call fcn.0050b080
fcomp qword [esi + 0x190]
mov ecx, esi
fnstsw ax
test ah, 0x41
jne 0x4ecacc
call fcn.0050b080
fsubr qword [esi + 0x190]
sub esp, 8
fabs
fstp qword [esp]
push 0x61f528
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0x20]
push eax
push ecx
jmp 0x4ecaf2
call fcn.0050b080
fsubr qword [esi + 0x190]
sub esp, 8
fabs
fstp qword [esp]
push 0x61f50c
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea edx, [esp + 0x20]
push eax
push edx
call sub.mfc42u.dll_CString::Format_1
add esp, 0x10
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call sub.mfc42u.dll_CString::operator_1
mov ecx, esi
call fcn.0050b020
mov ecx, dword [eax + 0x20]
lea edi, [esi + 0x170]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov edx, dword [eax + 0x24]
mov dword [esp + 0x10], edx
call fcn.004b7040
fsub qword [esp + 0xc]
fabs
fcomp qword [0x5e27e0]
fnstsw ax
test ah, 0x41
jne 0x4ecbe2
mov ecx, esi
call fcn.0050b020
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov edx, dword [eax + 0x24]
mov dword [esp + 0x10], edx
call fcn.004b7040
fcomp qword [esp + 0xc]
mov ecx, esi
fnstsw ax
test ah, 1
je 0x4ecb95
call fcn.0050b020
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov edx, dword [eax + 0x24]
mov dword [esp + 0x10], edx
call fcn.004b7040
fsub qword [esp + 0xc]
sub esp, 8
fabs
fstp qword [esp]
push 0x61f4f4
jmp 0x4ecbc0
call fcn.0050b020
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov edx, dword [eax + 0x24]
mov dword [esp + 0x10], edx
call fcn.004b7040
fsub qword [esp + 0xc]
sub esp, 8
fabs
fstp qword [esp]
push 0x61f4dc
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
lea eax, [esp + 0x24]
push eax
call sub.mfc42u.dll_CString::Format_1
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call sub.mfc42u.dll_CString::operator_1
mov ecx, esi
call fcn.0050b020
mov edx, dword [eax + 0x28]
mov ecx, edi
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x10], eax
call fcn.004b7060
fsub qword [esp + 0xc]
fabs
fcomp qword [0x5e27e0]
fnstsw ax
test ah, 0x41
jne 0x4eccb8
mov ecx, esi
call fcn.0050b020
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov edx, dword [eax + 0x24]
mov dword [esp + 0x10], edx
call fcn.004b7040
fcomp qword [esp + 0xc]
mov ecx, esi
fnstsw ax
test ah, 1
je 0x4ecc6b
call fcn.0050b020
mov ecx, dword [eax + 0x28]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x10], edx
call fcn.004b7060
fsub qword [esp + 0xc]
sub esp, 8
fabs
fstp qword [esp]
push 0x61f4c4
jmp 0x4ecc96
call fcn.0050b020
mov ecx, dword [eax + 0x28]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x10], edx
call fcn.004b7060
fsub qword [esp + 0xc]
sub esp, 8
fabs
fstp qword [esp]
push 0x61f4ac
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
lea eax, [esp + 0x24]
push eax
call sub.mfc42u.dll_CString::Format_1
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call sub.mfc42u.dll_CString::operator_1
mov ecx, esi
call fcn.0050b020
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call fcn.0050b050
fld qword [esi + 0x160]
fsub qword [edi]
mov ecx, edi
mov ebx, eax
fstp qword [esp + 0x1c]
call fcn.004b7040
fdivr qword [esp + 0x1c]
mov ecx, esi
fstp qword [esp + 0x1c]
call fcn.0050b020
fld qword [ebx]
fsub qword [eax]
fdiv qword [esp + 0xc]
fsubr qword [esp + 0x1c]
fabs
fcomp qword [0x5e2640]
fnstsw ax
test ah, 0x41
je 0x4ecd7e
mov ecx, esi
call fcn.0050b020
fld qword [esi + 0x168]
fsub qword [esi + 0x178]
mov edx, dword [eax + 0x28]
mov ecx, edi
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x2c]
fstp qword [esp + 0x1c]
mov dword [esp + 0x10], eax
call fcn.004b7060
fdivr qword [esp + 0x1c]
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
fstp qword [esp + 0x20]
call fcn.0050b050
mov ecx, esi
mov ebx, eax
call fcn.0050b020
fld qword [ebx + 8]
fsub qword [eax + 8]
fdiv qword [esp + 0xc]
fsubr qword [esp + 0x1c]
fabs
fcomp qword [0x5e2640]
fnstsw ax
test ah, 0x41
jne 0x4ecd97
push 0x61f4a0
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esi + 0x12c]
push eax
call fcn.005c0e5a
mov edx, dword [esi + 0x12c]
mov eax, dword [edx - 8]
test eax, eax
je 0x4ecdae
mov dword [esi + 0x10c], 1
mov ecx, esi
call fcn.0050b020
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, esi
mov edx, dword [eax + 0x24]
mov dword [esp + 0x10], edx
call fcn.0050b020
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov edx, dword [eax + 0x24]
mov dword [esp + 0x20], edx
call fcn.0050b020
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x44], ecx
mov ecx, esi
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x48], edx
call fcn.0050b020
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x54], ecx
mov ecx, edi
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x58], edx
call fcn.004b7040
fsub qword [esp + 0xc]
mov ecx, edi
fabs
fstp qword [esp + 0xc]
call fcn.004b7040
fadd qword [esp + 0x1c]
mov ecx, edi
fdivr qword [esp + 0xc]
fstp qword [esp + 0xc]
call fcn.004b7060
fsub qword [esp + 0x44]
mov ecx, edi
fabs
fmul qword [esp + 0xc]
fstp qword [esp + 0xc]
call fcn.004b7060
fadd qword [esp + 0x54]
mov ecx, esi
fdivr qword [esp + 0xc]
fstp qword [esp + 0xc]
call fcn.0050b080
fsubr qword [esi + 0x190]
mov ecx, esi
fabs
fstp qword [esp + 0x1c]
call fcn.0050b080
fadd qword [esi + 0x190]
lea eax, [esp + 0x34]
mov ecx, esi
push eax
fdivr qword [esp + 0x20]
fstp qword [esp + 0x20]
call fcn.0050b050
fld qword [esi + 0x160]
fsub qword [esp + 0x34]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
fstp qword [esp + 0x38]
fld qword [esi + 0x168]
fsub qword [esp + 0x40]
fstp qword [esp + 0x40]
call fcn.0050b020
mov ecx, eax
call fcn.004b6ed0
lea edx, [esp + 0x64]
mov ecx, edi
push edx
call fcn.004b6ed0
fld qword [eax]
fsub qword [esp + 0x24]
fstp qword [esp + 0x24]
lea eax, [esp + 0xf8]
mov ecx, edi
push eax
call fcn.004b6ed0
fld qword [eax + 8]
fsub qword [esp + 0x2c]
fstp qword [esp + 0x2c]
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4ecf10
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xc]
jmp 0x4ecfd4
fld qword [esp + 0xc]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x4ecfb5
fld qword [esp + 0x3c]
fmul qword [esp + 0x3c]
fld qword [esp + 0x34]
fmul qword [esp + 0x34]
faddp st(1)
fsqrt
fld qword [esp + 0x2c]
fmul qword [esp + 0x2c]
fld qword [esp + 0x24]
fmul qword [esp + 0x24]
faddp st(1)
fsqrt
fstp qword [esp + 0x5c]
fcom qword [esp + 0x5c]
fnstsw ax
test ah, 1
je 0x4ecf91
fcom qword [0x5e2790]
fnstsw ax
test ah, 0x41
jne 0x4ecfd2
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 1
je 0x4ecfd4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xc]
jmp 0x4ecfd4
fstp st(0)
fld qword [esp + 0x5c]
fcomp qword [0x5e2790]
fnstsw ax
test ah, 0x41
jne 0x4ecfd4
fld qword [esp + 0x5c]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 1
je 0x4ecfd4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xc]
jmp 0x4ecfd4
fstp st(0)
lea ecx, [esp + 0x18]
mov dword [esp + 0x1d8], 0xffffffff
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x1d0]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8