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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d7e55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
call fcn.0056c0e0
mov eax, dword [edi + 0x1c]
mov ebx, dword [ebp + 0x18]
cmp eax, 0xffffffff
je 0x5240bd
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
je 0x5240d2
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [ebx + 4], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
mov dword [esp + 0x30], 0x5f0760
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1e0], esi
mov dword [esp + 0x44], 0x5e27fc
mov dword [esp + 0x48], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov ecx, edi
mov byte [esp + 0x1e0], 1
call fcn.0056c0e0
mov ecx, edi
call fcn.0056c0e0
mov esi, eax
mov ecx, esi
call fcn.0056ac90
test eax, eax
jne 0x52414b
mov esi, dword [esi + 0x5c]
mov ecx, edi
call fcn.0056c0e0
cmp esi, eax
je 0x52414b
mov ecx, esi
call fcn.0056ac90
test eax, eax
je 0x524132
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x24], esi
mov ecx, esi
inc edi
call fcn.0056ac90
test eax, eax
je 0x524182
mov eax, dword [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.0040c9d0
mov ecx, dword [esp + 0x4c]
push edi
push ecx
jmp 0x524215
cmp ebx, 0xffffffff
jne 0x5241cc
mov eax, dword [esi + 0x58]
test eax, eax
je 0x524223
mov eax, dword [esp + 0x38]
test eax, eax
je 0x524223
mov edx, dword [esp + 0x34]
mov eax, dword [edx + eax*4 - 4]
fld qword [eax + 0x20]
fmul qword [esi + 0x18]
fld qword [eax + 0x18]
fmul qword [esi + 0x20]
fsubp st(1)
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x41
jne 0x5241c8
mov ebx, 1
jmp 0x524223
xor ebx, ebx
jmp 0x524223
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + ecx*4 - 4]
fld qword [eax + 0x20]
fmul qword [esi + 0x18]
fld qword [eax + 0x18]
fmul qword [esi + 0x20]
fsubp st(1)
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x41
jne 0x5241fa
mov eax, 1
jmp 0x5241fc
xor eax, eax
cmp ebx, eax
je 0x524223
mov edx, dword [esp + 0x38]
push esi
push edx
lea ecx, [esp + 0x38]
call fcn.0040c9d0
mov eax, dword [esp + 0x4c]
push edi
push eax
lea ecx, [esp + 0x4c]
call fcn.0040c9d0
xor edi, edi
or ebx, 0xffffffff
fld qword [esp + 0x5c]
fadd qword [esi + 0x10]
mov esi, dword [esi + 0x5c]
mov ecx, dword [esp + 0x24]
cmp esi, ecx
fstp qword [esp + 0x5c]
jne 0x52415c
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x5242ac
mov edx, dword [esp + 0x2c]
mov edi, ecx
mov eax, dword [edx + 0x1c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
test esi, esi
jle 0x524261
mov eax, esi
mov edi, dword [edi + 0x5c]
dec eax
jne 0x52425b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0040c9d0
mov edx, dword [esp + 0x4c]
push esi
push edx
lea ecx, [esp + 0x4c]
call fcn.0040c9d0
mov eax, dword [esp + 0x38]
push edi
push eax
lea ecx, [esp + 0x38]
call fcn.0040c9d0
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
mov eax, dword [edi + 0x1c]
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040c9d0
jmp 0x5242ba
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
add ecx, edi
mov edi, dword [esp + 0x2c]
mov dword [eax], ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx]
mov edx, dword [esp + 0x38]
mov esi, dword [ecx]
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.0040c9d0
mov eax, dword [esp + 0x4c]
push esi
push eax
lea ecx, [esp + 0x4c]
call fcn.0040c9d0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x52435f
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00523df0
mov esi, eax
mov dword [esp + 0x44], 0x5e27fc
mov eax, dword [esp + 0x48]
mov byte [esp + 0x1e0], 2
test eax, eax
je 0x52432a
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x44], 0x5e262c
mov dword [esp + 0x30], 0x5f0760
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1e0], 3
test eax, eax
je 0x524be2
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
jmp 0x524be2
xor esi, esi
mov dword [esp + 0x100], 0x5e7a90
mov dword [esp + 0x198], esi
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1e0], 4
mov dword [esp + 0x1a8], esi
mov dword [esp + 0x1ac], esi
mov dword [esp + 0x1b8], esi
mov dword [esp + 0x1bc], esi
mov dword [esp + 0x1c0], esi
mov dword [esp + 0x1c4], 0x3ff00000
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x1b4], 0x3ff00000
mov dword [esp + 0x1c8], 0x47ae147b
mov dword [esp + 0x1cc], 0x3f847ae1
mov dword [esp + 0x1d0], 0xeb1c432d
mov dword [esp + 0x1d4], 0x3f1a36e2
call fcn.004b8c80
mov dword [esp + 0x10], 0x5e5218
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x38]
mov eax, 1
cmp ecx, eax
mov byte [esp + 0x1e0], 6
mov dword [esp + 0x58], eax
jle 0x5248a4
mov ebx, eax
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], edi
mov ecx, dword [esi + ebx*4 - 4]
lea eax, [esi + ebx*4 - 4]
mov edx, dword [ecx + 0x5c]
cmp edx, dword [esi + ebx*4]
jne 0x524479
fld qword [ebp + 8]
lea edx, [esp + 0xb8]
push edx
sub esp, 8
fchs
fstp qword [esp]
call fcn.004b90d0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xb8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0051d140
jmp 0x52473d
xor edx, edx
mov dword [esp + 0x68], 0x5e27c0
mov dword [esp + 0x6c], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], edx
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x1e0], 7
mov ecx, dword [ecx + ebx*4]
cmp ecx, 0xffffffff
je 0x5244ab
mov dword [esp + 0x78], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], edx
lea edx, [esp + 0x68]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esi + ebx*4]
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
call fcn.0056d7a0
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov edx, esp
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x80]
push edx
lea ecx, [esp + 0x7c]
call fcn.0040d0a0
mov eax, dword [esp + 0x70]
mov esi, 1
cmp eax, esi
jle 0x52457d
mov edi, 0x10
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0xb8]
add eax, edi
push eax
add eax, 0xfffffff0
push eax
call fcn.004b8810
test al, al
je 0x52456d
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb8]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.0051d140
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
fld qword [ebp + 8]
lea eax, [eax + eax*8]
fchs
lea edx, [ecx + eax*8 - 0x48]
lea ecx, [esp + 0xb8]
push edx
sub esp, 8
fstp qword [esp]
call fcn.004b90d0
mov eax, dword [esp + 0x70]
inc esi
add edi, 0x10
cmp esi, eax
jl 0x524515
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + ebx*4 - 4]
mov eax, dword [ecx + 0x5c]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x524704
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
mov dword [esp + 0x24], edi
jge 0x524704
mov ebx, edi
lea ebx, [ebx + ebx*8]
shl ebx, 3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x100]
lea esi, [edx + ebx]
push esi
lea edi, [esi - 0x48]
push edi
call fcn.0045d840
fld qword [esp + 0x1a0]
fcomp qword [0x5e2798]
mov dword [esp + 0x198], 0
fnstsw ax
test ah, 0x40
jne 0x524673
fld qword [esi + 8]
fsub qword [edi + 8]
mov edx, dword [esp + 0x14]
fmul qword [esi + 0x18]
fld qword [edi]
fsub qword [esi]
fmul qword [esi + 0x20]
faddp st(1)
fdiv qword [esp + 0x1a0]
fstp qword [esp + 0x108]
fld qword [esi + 8]
fsub qword [edi + 8]
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x108]
push eax
push ecx
fmul qword [edi + 0x18]
fld qword [edi]
fsub qword [esi]
push 0
push 0
lea ecx, [edx + ebx - 0x48]
fmul qword [edi + 0x20]
mov dword [esp + 0x1a8], 1
faddp st(1)
fdiv qword [esp + 0x1b0]
fstp qword [esp + 0x160]
call fcn.004b8a70
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x150]
mov edx, dword [esp + 0x14]
push 0x3ff00000
push 0
push eax
push ecx
lea ecx, [edx + ebx]
jmp 0x5246e7
mov eax, dword [esp + 0x14]
fld qword [eax + ebx + 8]
fld qword [eax + ebx]
lea ecx, [eax + ebx - 0x48]
fstp qword [esp + 0xac]
fld qword [ecx + 0x18]
fabs
fld qword [ecx + 0x20]
fabs
fcompp
fnstsw ax
test ah, 1
je 0x5246ac
fstp st(0)
fld qword [esp + 0xac]
fsub qword [ecx]
fdiv qword [ecx + 0x18]
jmp 0x5246b2
fsub qword [ecx + 8]
fdiv qword [ecx + 0x20]
fld qword [0x5e2858]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x5246d5
fstp st(0)
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0x3ff00000
jmp 0x5246d9
fstp qword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push eax
push edx
push 0
push 0
call fcn.004b8a70
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
inc eax
add ebx, 0x48
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x5245ac
mov dword [esp + 0x68], 0x5e27c0
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x1e0], 8
test eax, eax
je 0x524725
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x28]
mov byte [esp + 0x1e0], 6
mov dword [esp + 0x68], 0x5e262c
test edi, edi
je 0x524886
mov eax, dword [esp + 0x14]
lea esi, [edi + edi*8]
shl esi, 3
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x8c]
fld qword [eax + esi - 0x30]
fadd qword [eax + esi - 0x48]
fstp qword [esp + 0x8c]
fld qword [eax + esi - 0x28]
fadd qword [eax + esi - 0x40]
fstp qword [esp + 0x94]
fld qword [eax + esi]
fstp qword [esp + 0x7c]
fld qword [eax + esi + 8]
lea eax, [esp + 0x9c]
fstp qword [esp + 0x84]
fld qword [ebp + 8]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
mov ecx, dword [eax + ebx*4 - 4]
sub esp, 8
fchs
fstp qword [esp]
push ecx
call fcn.00522580
add esp, 0x18
test al, al
je 0x524886
lea edx, [esp + 0x9c]
lea eax, [esp + 0x8c]
push edx
push eax
lea ecx, [esp + 0xc0]
call fcn.004b8810
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp eax, edi
push 0xffffffffffffffff
jl 0x5247f3
mov ecx, eax
add ecx, 2
push ecx
lea ecx, [esp + 0x18]
call fcn.0042a220
jmp 0x524846
lea edx, [edi + 2]
lea ecx, [esp + 0x14]
push edx
call fcn.0042a220
mov eax, dword [esp + 0x14]
lea edi, [edi + edi*8]
shl edi, 3
add eax, edi
push 2
push eax
call fcn.005273e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
sub edi, esi
lea eax, [eax + eax*8 + 0x12]
lea edx, [ecx + esi]
push edi
push edx
lea ecx, [ecx + eax*8]
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
mov edx, dword [esp + 0x20]
add esp, 0xc
add edx, esi
push 2
push edx
call fcn.0042a440
mov ebx, dword [esp + 0x58]
mov edi, 2
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xb8]
push edx
lea ecx, [eax + esi]
add esi, 0x48
call fcn.004b8e40
dec edi
jne 0x52484b
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
lea edx, [eax + eax*8 + 9]
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edx*8]
call fcn.004b8810
mov eax, dword [esp + 0x38]
inc ebx
cmp ebx, eax
mov dword [esp + 0x58], ebx
jl 0x52442a
mov eax, dword [esp + 0x18]
cmp eax, 2
jge 0x52496d
mov esi, dword [esp + 0x2c]
push esi
push 0x620700
push 0x6206c8
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c760
mov ecx, dword [ebp + 0x18]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0056c8f0
mov dword [esp + 0x10], 0x5e5218
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1e0], 9
test eax, eax
je 0x5248ff
mov edx, dword [esp + 0x18]
push edx
push eax
call fcn.005273e0
mov eax, dword [esp + 0x14]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
lea ecx, [esp + 0xb8]
mov dword [esp + 0x10], esi
mov byte [esp + 0x1e0], 4
call fcn.004b8d30
lea ecx, [esp + 0x100]
mov byte [esp + 0x1e0], 1
call fcn.004b90a0
mov dword [esp + 0x44], 0x5e27fc
mov eax, dword [esp + 0x48]
mov byte [esp + 0x1e0], 0xa
test eax, eax
je 0x524951
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], 0x5f0760
mov dword [esp + 0x1e0], 0xb
jmp 0x524b57
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x14]
fld qword [eax + ecx*8 - 0x30]
fadd qword [eax + ecx*8 - 0x48]
lea ecx, [eax + ecx*8 - 0x48]
fstp qword [esp + 0x8c]
fld qword [ecx + 0x20]
fadd qword [ecx + 8]
fstp qword [esp + 0x94]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
fld qword [ebp + 8]
mov dword [esp + 0x84], edx
lea ecx, [esp + 0x9c]
mov dword [esp + 0x88], eax
lea edx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x90]
push edx
mov edx, dword [ecx]
push eax
sub esp, 8
fchs
fstp qword [esp]
push edx
call fcn.00522580
add esp, 0x18
test al, al
je 0x524a4c
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0xc0]
call fcn.004b8810
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xb8]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.0051d140
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x9c]
push ecx
push edx
lea ecx, [esp + 0xc0]
call fcn.004b8810
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xb8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0051d140
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x524a74
xor esi, esi
mov edx, dword [esp + 0x14]
lea ecx, [edx + esi]
lea eax, [ecx + 0x28]
push eax
call fcn.004b8750
mov eax, dword [esp + 0x18]
inc edi
add esi, 0x48
cmp edi, eax
jl 0x524a58
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push edi
push ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
push eax
push ecx
mov ecx, esi
call fcn.0051eb50
test al, al
jne 0x524b81
push esi
push 0x620700
push 0x6206c8
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c760
add esp, 0xc
mov ecx, esi
push edi
call fcn.0056c8f0
mov dword [esp + 0x10], 0x5e5218
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1e0], 0xc
test eax, eax
je 0x524aee
mov edx, dword [esp + 0x18]
push edx
push eax
call fcn.005273e0
mov eax, dword [esp + 0x14]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
lea ecx, [esp + 0xb8]
mov dword [esp + 0x10], esi
mov byte [esp + 0x1e0], 4
call fcn.004b8d30
lea ecx, [esp + 0x100]
mov byte [esp + 0x1e0], 1
call fcn.004b90a0
mov dword [esp + 0x44], 0x5e27fc
mov eax, dword [esp + 0x48]
mov byte [esp + 0x1e0], 0xd
test eax, eax
je 0x524b40
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], 0x5f0760
mov dword [esp + 0x1e0], 0xe
mov eax, dword [esp + 0x34]
test eax, eax
je 0x524b68
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [edi + 8]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e0], 5
call fcn.00429fa0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1e0], 4
call fcn.004b8d30
lea ecx, [esp + 0x100]
mov byte [esp + 0x1e0], 1
call fcn.004b90a0
lea ecx, [esp + 0x44]
mov byte [esp + 0x1e0], 0
call fcn.0040a7f0
lea ecx, [esp + 0x30]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.00527300
mov ecx, dword [esp + 0x1d8]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14