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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d8fbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x10], ecx
lea eax, [edi + edi*4]
lea eax, [eax + eax*8]
lea edx, [edi + eax*2]
mov eax, dword [ecx + 0x24]
cmp word [eax + edx*8], bx
lea esi, [eax + edx*8]
mov dword [esp + 0x28], esi
je 0x537b77
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push edi
push edx
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.00536fc0
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
lea ecx, [esp + 0x68]
call fcn.004b6ca0
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x11c], ebx
call fcn.00527630
mov word [esp + 0x3c], bx
mov ebx, dword [ebp + 0xc]
mov word [esp + 0x3e], di
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
call fcn.0059eda0
mov edi, eax
mov al, byte [ebp + 8]
test al, al
mov dword [esp + 0x2c], edi
jne 0x537cbe
cmp word [esi + 4], 0
jne 0x537cbe
mov ecx, ebx
call fcn.004b7060
fsub qword [esi + 0x298]
fdiv qword [esi + 0x2b0]
call sub.msvcrt.dll__ftol
inc eax
mov ecx, ebx
mov word [esp + 0x40], ax
call fcn.004b7040
fsub qword [esi + 0x290]
fdiv qword [esi + 0x2b8]
call sub.msvcrt.dll__ftol
inc eax
mov word [esp + 0x42], ax
mov eax, dword [esp + 0x42]
imul eax, dword [esp + 0x40]
movsx edx, ax
cmp edx, edi
mov word [esp + 0x44], ax
jg 0x537cbe
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push esi
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.00527970
mov esi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x10]
push esi
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00536ad0
fsub qword [esp + 0x68]
push 0
push 0
lea ecx, [esp + 0x70]
fstp qword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.004b6fc0
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
push esi
push ebx
push 1
mov ecx, edi
call fcn.00538600
fstp qword [ebp + 0x1c]
jmp 0x538523
fld qword [esi + 0x2b8]
fmul qword [esi + 0x298]
fld qword [esi + 0x290]
fmul qword [esi + 0x2b0]
fdivp st(1)
fabs
fcomp qword [0x5f0860]
fnstsw ax
test ah, 0x41
jne 0x537ceb
mov al, 1
jmp 0x537ced
xor al, al
test al, al
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
je 0x537db6
lea eax, [esp + 0xa4]
mov ecx, ebx
push eax
push edi
call fcn.004b7060
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.0059efe0
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.004b7060
mov ecx, dword [esp + 0x10]
fmul qword [ecx + 0x78]
fcomp qword [esi + 0x298]
fnstsw ax
test ah, 0x41
je 0x537d51
mov dword [esp + 0x18], 1
jmp 0x537dab
mov ecx, ebx
call fcn.004b7060
mov edx, dword [esp + 0x10]
fmul qword [edx + 0x78]
fsub qword [esi + 0x298]
fdiv qword [esi + 0x2b0]
call sub.msvcrt.dll__ftol
inc eax
mov ecx, ebx
mov dword [esp + 0x18], eax
dec eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [esi + 0x2b0]
fadd qword [esi + 0x298]
fstp qword [esp + 0x1c]
call fcn.004b7060
mov eax, dword [esp + 0x10]
fmul qword [eax + 0x78]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x537dab
inc dword [esp + 0x18]
cmp edi, dword [esp + 0x18]
jge 0x537e04
jmp 0x538523
lea ecx, [esp + 0xa4]
push ecx
push edi
mov ecx, ebx
call fcn.004b7060
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.0059efe0
test eax, eax
mov dword [esp + 0x18], eax
je 0x538523
mov ecx, ebx
call fcn.004b7060
fsub qword [esi + 0x298]
fdiv qword [esi + 0x2b0]
call sub.msvcrt.dll__ftol
inc eax
cmp eax, edi
mov dword [esp + 0x24], eax
jl 0x537e04
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
cmp edx, eax
jg 0x538523
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0059eee0
mov edx, dword [ebp + 0x18]
mov dword [esp + 0xac], eax
mov dx, word [esi + edx*2 + 0x2c]
movsx ecx, dx
imul ecx, edi
cmp ecx, eax
jge 0x537ee8
cmp word [esi], 0
jne 0x537ee8
cmp dx, 1
jne 0x537ee8
cmp word [esi + 4], 0
jne 0x537ee8
sub eax, ecx
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.004b7060
mov esi, dword [esp + 0x18]
fstp st(0)
mov eax, edi
cdq
idiv esi
test edx, edx
jne 0x537edf
mov eax, edi
mov ecx, dword [esp + 0x14]
cdq
idiv esi
cmp eax, ecx
jl 0x537edf
mov word [esp + 0x42], ax
mov eax, esi
imul eax, dword [esp + 0x42]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov word [esp + 0x44], ax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
lea eax, [esp + 0x44]
sub esp, 0x60
mov word [esp + 0xb4], si
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
call fcn.00533910
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x88]
push ebx
call fcn.00537590
fstp qword [ebp + 0x1c]
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jle 0x537e72
lea ecx, [esp + 0xe8]
call fcn.004b6ca0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb8], ecx
mov cx, word [esp + 0x40]
mov dword [esp + 0xb0], edx
mov dx, word [esp + 0x3c]
mov dword [esp + 0xb4], eax
mov ax, word [esp + 0x3e]
mov word [esp + 0xc0], cx
mov cx, word [esp + 0x46]
mov word [esp + 0xbc], dx
mov dx, word [esp + 0x42]
mov word [esp + 0xbe], ax
mov ax, word [esp + 0x44]
mov word [esp + 0xc6], cx
mov ecx, 8
lea esi, [esp + 0x48]
lea edi, [esp + 0xc8]
mov word [esp + 0xc2], dx
mov word [esp + 0xc4], ax
lea edx, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [esp + 0xec]
mov byte [esp + 0x11c], 1
call fcn.004b6d90
fild dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
fmul qword [esi + 0x2a0]
mov dword [esp + 0x108], eax
mov eax, ecx
cmp ecx, edx
mov word [esp + 0xbc], 3
fdiv qword [ebp + 0x24]
mov word [esp + 0xc0], 1
mov dword [esp + 0x14], eax
fstp qword [ebp + 0x24]
jl 0x538389
jmp 0x537fe0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
mov word [esp + 0x40], ax
movsx ecx, ax
mov eax, edi
cdq
idiv ecx
mov word [esp + 0x42], ax
mov eax, edi
cdq
idiv ecx
test edx, edx
je 0x538004
inc word [esp + 0x42]
movsx eax, word [esp + 0x42]
lea edx, [ecx - 1]
imul edx, eax
cmp edx, edi
jge 0x5382bc
push ecx
push edi
mov ecx, esi
call fcn.0059ef30
fcomp qword [ebp + 0x24]
fnstsw ax
test ah, 0x41
je 0x5382bc
movsx ecx, word [esp + 0x40]
mov eax, edi
cdq
idiv ecx
test edx, edx
je 0x53821e
movsx ecx, word [esp + 0x42]
mov eax, edi
push esi
cdq
idiv ecx
mov ecx, dword [ebx + 0xc]
mov eax, edi
push ecx
mov ecx, dword [ebx]
sub eax, edx
mov edx, dword [ebx + 8]
dec word [esp + 0x48]
mov word [esp + 0x4c], ax
mov eax, dword [ebx + 4]
push edx
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.00527970
fld qword [esp + 0x78]
fcomp qword [ebx + 0x10]
fnstsw ax
test ah, 0x41
je 0x5382d1
movsx edx, word [esp + 0x40]
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x44]
fild dword [esp + 0x28]
mov eax, edi
push esi
sub eax, ecx
mov ecx, dword [ebx]
fmul qword [esi + 0x2b0]
sub esp, 8
mov word [esp + 0xce], ax
mov word [esp + 0xd0], ax
mov eax, dword [ebx + 4]
fadd qword [ebx + 8]
fstp qword [esp]
push eax
push ecx
lea ecx, [esp + 0xc4]
call fcn.00527970
mov ecx, 1
xor eax, eax
cmp word [esi + 0xa], cx
mov word [esp + 0xc6], ax
mov word [esp + 0xc8], ax
jne 0x538160
cmp word [esi + 8], 2
jne 0x538160
mov eax, dword [ebp + 0x2c]
movsx edx, word [esi + 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + edx*4]
lea edx, [edi + edi]
cmp eax, edx
jle 0x538160
fld qword [esi + 0xa0]
fcomp qword [esi + 0xc0]
mov word [esp + 0xc6], cx
fnstsw ax
test cl, ah
je 0x538127
mov word [esp + 0xc8], cx
jmp 0x53812f
mov word [esp + 0xca], cx
fld qword [esi + 0xa0]
fld qword [esi + 0xc0]
fcompp
fnstsw ax
test ah, 0x41
jne 0x53814c
fld qword [esi + 0xa0]
jmp 0x538152
fld qword [esi + 0xc0]
fadd qword [esp + 0xf8]
fstp qword [esp + 0xf8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x100]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00536ad0
fsub qword [esp + 0x68]
push 0
push 0
lea ecx, [esp + 0x70]
fstp qword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.004b6fc0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push 0
push ecx
push edx
lea ecx, [esp + 0xf8]
call fcn.004b6fc0
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0xbc]
push eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ebx
call fcn.005394d0
fstp qword [ebp + 0x1c]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
push eax
lea edx, [esp + 0xbc]
push ecx
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x40]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
call fcn.00538c40
jmp 0x5382b9
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push esi
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
lea ecx, [esp + 0x44]
mov word [esp + 0x58], di
call fcn.00527970
fld qword [esp + 0x78]
fcomp qword [ebx + 0x10]
fnstsw ax
test ah, 0x41
je 0x5382d1
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00536ad0
fsub qword [esp + 0x68]
push 0
push 0
lea ecx, [esp + 0x70]
fstp qword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.004b6fc0
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
push eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ebx
push 1
call fcn.00538600
fstp qword [ebp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
dec eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jge 0x537fdc
mov ecx, dword [esp + 0x24]
xor edx, edx
cmp word [esi + 4], dx
jne 0x53850f
cmp word [esi + 0xa], 1
jne 0x53833a
cmp word [esi + 8], 2
jne 0x53833a
mov eax, edi
cdq
idiv ecx
mov edx, eax
imul edx, ecx
cmp edx, edi
jge 0x5382fe
inc eax
lea edx, [eax + eax - 1]
imul edx, ecx
lea ecx, [edi + edi]
cmp ecx, edx
jg 0x538338
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x20]
dec eax
push edx
mov edx, dword [ebp + 0x1c]
mov word [esp + 0x46], ax
mov eax, dword [ebp + 0x2c]
push eax
push ecx
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push ebx
call fcn.00539d90
fstp qword [ebp + 0x1c]
xor edx, edx
mov dword [esp + 0x90], 0x5e27fc
mov dword [esp + 0x94], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], edx
mov eax, dword [ebp + 0x2c]
mov byte [esp + 0x118], 2
mov eax, dword [eax + 8]
cmp eax, edx
mov dword [esp + 0x28], eax
jne 0x538392
xor eax, eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], eax
jmp 0x5383d8
mov edi, dword [esp + 0x2c]
jmp 0x5382d5
lea edi, [eax*4]
push edi
call sub.mfc42u.dll_operatornew
mov edx, eax
mov ecx, edi
mov dword [esp + 0x98], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x98]
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], eax
mov ecx, eax
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
xor ecx, ecx
cmp word [esi + 8], cx
lea eax, [edi - 1]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul qword [esi + 0x2b0]
fadd qword [esi + 0x298]
fstp qword [esp + 0x1c]
jle 0x538461
lea eax, [esi + 0xa8]
lea edx, [esi + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
fld qword [esp + 0x1c]
fadd qword [eax]
fcomp qword [ebx + 0x18]
fnstsw ax
test ah, 1
je 0x538443
mov eax, dword [edx]
mov edi, dword [esp + 0x94]
mov eax, dword [eax + 0xd8]
lea eax, [edi + eax*4]
mov edi, dword [eax]
inc edi
mov dword [eax], edi
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc ecx
add eax, 0x20
add edx, 4
mov dword [esp + 0x14], eax
movsx eax, word [esi + 8]
cmp ecx, eax
jl 0x538414
mov edx, dword [esp + 0x94]
mov eax, dword [ebp + 0x18]
movsx ecx, word [esi + eax*2 + 0xc]
mov ecx, dword [edx + ecx*4]
test ecx, ecx
jne 0x53848e
mov dword [esp + 0x90], 0x5e27fc
test edx, edx
mov byte [esp + 0x118], 3
je 0x53850f
push edx
jmp 0x538507
movsx edx, word [esi + eax*2 + 0x2c]
imul edx, edi
mov esi, dword [esp + 0xac]
add ecx, edx
mov eax, esi
cdq
idiv ecx
movsx edx, ax
imul edx, ecx
cmp esi, edx
mov word [esp + 0x42], ax
jle 0x5384ba
inc ax
mov word [esp + 0x42], ax
mov word [esp + 0x40], di
imul edi, dword [esp + 0x42]
mov word [esp + 0x44], di
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
mov word [esp + 0x46], 0
rep stosd dword es:[edi], eax
movsx eax, word [esp + 0x44]
cmp eax, dword [esp + 0x2c]
jl 0x538551
mov dword [esp + 0x90], 0x5e27fc
mov eax, dword [esp + 0x94]
mov byte [esp + 0x118], 4
test eax, eax
je 0x53850f
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0xe8]
mov byte [esp + 0x118], 0
call fcn.0042bd50
lea ecx, [esp + 0x68]
mov dword [esp + 0x118], 0xffffffff
call fcn.0042bd50
fld qword [ebp + 0x1c]
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
sub esp, 0x60
lea eax, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
call fcn.00533910
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x88]
push ebx
call fcn.00537590
fstp qword [esp + 0x1c]
mov dword [esp + 0x90], 0x5e27fc
mov eax, dword [esp + 0x94]
mov byte [esp + 0x118], 5
test eax, eax
je 0x5385ba
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0xe8]
mov byte [esp + 0x118], 0
call fcn.0042bd50
lea ecx, [esp + 0x68]
mov dword [esp + 0x118], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x110]
pop edi
fld qword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x2c