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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [esi + 8], 1
jle 0x58db5d
push 0x48
call sub.mfc42u.dll_operatornew
add esp, 4
test eax, eax
je 0x58d782
mov ecx, eax
call fcn.0058cb00
mov ebx, eax
jmp 0x58d784
xor ebx, ebx
mov dword [ebx + 0x10], 0
mov ecx, dword [esi + 8]
dec ecx
js 0x58d7e6
mov edi, dword [esi + 4]
fld qword [ebp + 8]
fmul qword [0x5e2790]
lea edx, [edi + ecx*4]
mov eax, dword [edx]
fld qword [eax + 0x78]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x58d7ba
dec ecx
sub edx, 4
test ecx, ecx
jge 0x58d7a0
fstp st(0)
jmp 0x58d7e6
mov edx, dword [edi + ecx*4]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
sub eax, ecx
dec eax
fstp st(0)
lea edi, [edx + ecx*4]
je 0x58d7e3
shl eax, 2
lea ecx, [edx + ecx*4 + 4]
push eax
push ecx
push edi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
dec dword [esi + 8]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x58db51
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x50]
push ecx
push edx
push edi
push eax
call fcn.0058d3a0
lea ecx, [esp + 0x54]
lea edx, [esp + 0x64]
lea eax, [edi + 0x10]
push ecx
push edx
push eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.0058d460
lea edx, [esp + 0x68]
lea ecx, [esp + 0x78]
push edx
mov edx, dword [ebx + 0x10]
lea eax, [edi + 0x20]
push ecx
push eax
mov eax, dword [edx + 0xc]
push eax
call fcn.0058d520
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x8c]
add edi, 0x30
push ecx
mov ecx, dword [eax + 0xc]
push edx
push edi
push ecx
call fcn.0058d5f0
mov edx, dword [0x5f0fd8]
mov eax, dword [0x5f0fdc]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], 0
mov eax, dword [esi + 8]
add esp, 0x40
dec eax
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], eax
js 0x58db4a
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + eax*4]
fld qword [ecx + 0x78]
fcomp qword [ebp + 8]
fnstsw ax
test ah, 0x41
je 0x58db3b
mov edi, dword [ecx + 0xc]
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 0x10]
push edi
push edx
push eax
mov dword [esp + 0x20], 0
call fcn.0058c9f0
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebp + 0x10]
push edi
mov esi, eax
push ecx
push edx
mov dword [esp + 0x30], esi
call fcn.0058ca60
add esp, 0x18
cmp eax, esi
jge 0x58d8e2
mov esi, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0x10]
push 1
call fcn.0050c910
test al, al
jne 0x58d90c
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x24]
push 1
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + edx*4]
call fcn.0050c910
test al, al
je 0x58da2a
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x10]
push edi
push eax
lea eax, [ecx + 0x20]
push eax
call fcn.0058c9f0
sub eax, 2
add esp, 0xc
cmp eax, esi
jge 0x58d936
mov esi, eax
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x58]
push edi
add eax, 0x20
push edx
push eax
call fcn.0058ca60
sub eax, 2
add esp, 0xc
cmp eax, esi
jge 0x58d960
mov esi, eax
mov dword [esp + 0x14], 7
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0x10]
push 0x11
call fcn.0050c910
test al, al
jne 0x58d98a
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
push 0x11
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
call fcn.0050c910
test al, al
je 0x58da2a
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x44]
push edi
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.0058c9f0
add esp, 0xc
cmp eax, esi
jge 0x58d9b1
mov esi, eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x10]
push edi
push eax
lea eax, [ecx + 0x10]
push eax
call fcn.0058ca60
add esp, 0xc
cmp eax, esi
jge 0x58d9d8
mov esi, eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x4c]
push edi
add eax, 0x30
push edx
push eax
call fcn.0058c9f0
sub eax, 4
add esp, 0xc
cmp eax, esi
jge 0x58da02
mov esi, eax
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], esi
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x5c]
push edi
push ecx
lea eax, [edx + 0x30]
push eax
call fcn.0058ca60
sub eax, 4
add esp, 0xc
cmp eax, esi
jge 0x58da2a
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [esp + 0x24]
fild dword [esp + 0x18]
mov eax, dword [edi + 4]
fstp qword [esp + 0x28]
mov ecx, dword [eax + esi*4]
call fcn.0050b080
fstp qword [esp + 0x18]
mov ecx, dword [ebx + 0x10]
call fcn.0050b080
fadd qword [esp + 0x18]
mov ecx, dword [edi + 4]
fdivr qword [esp + 0x28]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx + 0x78]
mov eax, dword [ecx + 0x7c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
fstp qword [esp + 0x18]
call fcn.0050b080
fdivr qword [esp + 0x30]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x58daf4
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0x78]
mov eax, dword [ecx + 0x7c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.0050b080
fdivr qword [esp + 0x38]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x58daf4
mov al, byte [esp + 0x13]
test al, al
je 0x58dabf
fld qword [esp + 0x18]
fcomp qword [ebx + 8]
fnstsw ax
test ah, 1
je 0x58daed
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x18]
fld qword [esp + 0x28]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x1c]
fadd qword [0x5e2790]
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x14]
mov dword [ebx + 8], eax
mov dword [ebx + 0x18], esi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x40], edx
fstp qword [ebx + 0x20]
mov byte [esp + 0x13], 1
jmp 0x58db38
mov al, byte [esp + 0x13]
test al, al
jne 0x58db38
fld qword [esp + 0x18]
fcomp qword [ebx + 8]
fnstsw ax
test ah, 1
je 0x58db38
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x18]
fld qword [esp + 0x28]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x1c]
fadd qword [0x5e2790]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 8], edx
mov dword [ebx + 0x18], esi
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x40], ecx
fstp qword [ebx + 0x20]
mov esi, dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jns 0x58d887
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x58db66
test ebx, ebx
je 0x58db5d
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0058ce70
mov ecx, dword [ebx + 0x18]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
sub eax, ecx
dec eax
lea edi, [edx + ecx*4]
je 0x58db91
shl eax, 2
lea ecx, [edx + ecx*4 + 4]
push eax
push ecx
push edi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov ecx, dword [esi + 8]
dec ecx
mov dword [esi + 8], ecx
mov edx, dword [0x62adb0]
mov esi, edx
cmp esi, edx
mov dword [esp + 0x18], esi
jl 0x58dce0
mov eax, dword [0x62adac]
inc esi
xor edi, edi
cmp esi, edi
jne 0x58dbdc
cmp eax, edi
je 0x58dbcb
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [0x62adac], edi
mov dword [0x62adb4], edi
mov dword [0x62adb0], edi
jmp 0x58dce0
cmp eax, edi
jne 0x58dc1d
lea edi, [esi*4]
push edi
call sub.mfc42u.dll_operatornew
mov edx, eax
mov ecx, edi
mov dword [0x62adac], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x62adb4], esi
mov dword [0x62adb0], esi
jmp 0x58dce0
mov ecx, dword [0x62adb4]
cmp esi, ecx
jg 0x58dc41
cmp esi, edx
jle 0x58dc36
mov ecx, esi
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [0x62adb0], esi
jmp 0x58dce0
mov eax, dword [0x62adb8]
cmp eax, edi
jne 0x58dc6d
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x58dc61
mov eax, 4
jmp 0x58dc6d
cmp eax, 0x400
jle 0x58dc6d
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x24], eax
jl 0x58dc7b
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call sub.mfc42u.dll_operatornew
mov ecx, dword [0x62adb0]
mov esi, dword [0x62adac]
mov edx, dword [esp + 0x1c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 1]
mov edx, dword [0x62adb0]
mov ecx, esi
mov dword [esp + 0x18], eax
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [0x62adac]
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [0x62adac], ecx
mov dword [0x62adb0], esi
mov dword [0x62adb4], edx
mov eax, dword [0x62adac]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword [eax + ecx*4], ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret