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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x799c00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 8]
cmp ecx, 2
jl 0x50176f
jne 0x5013a9
mov edi, dword [ebp + 0x10]
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.005fc3f0
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
mov eax, dword [edi + 4]
mov edx, ecx
dec ecx
test edx, edx
je 0x50176f
inc ecx
mov edx, dword [esi]
add esi, 8
mov dword [eax], edx
mov edx, dword [esi - 4]
mov dword [eax + 4], edx
add eax, 8
dec ecx
jne 0x501384
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [esp + 0x38], 0x7cb8c8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], edx
mov eax, dword [esi + 4]
dec ecx
mov dword [esp + 0x68], edx
mov edi, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0x34], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], edi
mov edi, 2
mov dword [esp + 0x14], eax
cmp ecx, edi
jl 0x5014a3
mov ecx, dword [esi + 4]
mov edx, dword [ecx + edi*8 + 4]
push edx
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edi*8]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
push ebx
call fcn.00506650
fst qword [esp + 0x34]
fsubr qword [0x7cb8b8]
add esp, 0x18
fld st(0)
fabs
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 0x41
je 0x501444
fstp st(0)
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jmp 0x50146e
fld qword [esp + 0x1c]
fcomp qword [0x7cb8e0]
fnstsw ax
test ah, 1
jne 0x50146c
fld qword [esp + 0x1c]
fcomp qword [0x7cb8b8]
fnstsw ax
test ah, 1
je 0x50146c
fstp qword [esp + 0x1c]
jmp 0x50146e
fstp st(0)
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
mov dword [esp + 0x1c], eax
inc eax
push eax
lea ecx, [esp + 0x40]
call fcn.00421d50
fld qword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
inc edi
fstp qword [ecx + edx*8]
mov eax, dword [esi + 8]
dec eax
cmp edi, eax
jle 0x5013ef
mov edx, dword [esp + 0x40]
xor ecx, ecx
mov ebx, 1
test edx, edx
jle 0x5014d1
mov edi, dword [esp + 0x3c]
fld qword [edi]
fabs
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 0x41
je 0x5014cf
inc ecx
add edi, 8
cmp ecx, edx
jl 0x5014b2
jmp 0x5014d1
xor ebx, ebx
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
call fcn.00421d50
test ebx, ebx
je 0x50151f
mov ecx, dword [esi + 8]
mov edi, dword [ebp + 0x10]
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.005fc3f0
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
mov eax, dword [edi + 4]
mov edx, ecx
dec ecx
test edx, edx
je 0x50174e
inc ecx
mov edx, dword [esi]
add esi, 8
mov dword [eax], edx
mov edx, dword [esi - 4]
mov dword [eax + 4], edx
add eax, 8
dec ecx
jne 0x501507
jmp 0x50174e
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 8]
add ecx, 2
mov eax, dword [edi + 8]
cmp eax, ecx
je 0x5015ee
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.005fc3f0
mov ebx, dword [esi + 8]
lea eax, [ebx*8]
push eax
call fcn.007604a7
add esp, 4
test eax, eax
je 0x50155e
dec ebx
mov dword [esp + 0x1c], ebx
mov ebx, eax
jmp 0x501560
xor ebx, ebx
mov ecx, dword [esi + 8]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], eax
jle 0x501595
mov edx, dword [esi + 4]
shl eax, 3
mov ecx, eax
add ecx, edx
mov edx, dword [ecx]
mov dword [eax + ebx], edx
mov ecx, dword [ecx + 4]
mov dword [eax + ebx + 4], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x50156d
xor eax, eax
mov dword [esp + 0x4c], method.CCommandLineInfo.virtual_0
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x4c]
push edx
push edi
push eax
push ebx
mov byte [esp + 0x78], 1
call fcn.00500ed0
push ebx
call fcn.007604d0
add esp, 0x14
mov dword [esp + 0x4c], 0x7cb8c8
mov eax, dword [esp + 0x50]
mov byte [esp + 0x68], 2
test eax, eax
je 0x5015e9
push eax
call fcn.007604d0
add esp, 4
mov byte [esp + 0x68], 0
mov ebx, dword [esi + 8]
mov dword [esp + 0xc], ebx
lea eax, [ebx*8]
push eax
call fcn.007604a7
add esp, 4
test eax, eax
je 0x501612
dec ebx
mov dword [esp + 0x1c], ebx
mov ebx, eax
jmp 0x501614
xor ebx, ebx
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
jle 0x50164b
mov edx, dword [esi + 4]
shl eax, 3
mov ecx, eax
add ecx, edx
mov edx, dword [ecx]
mov dword [eax + ebx], edx
mov ecx, dword [ecx + 4]
mov dword [eax + ebx + 4], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x501625
mov eax, dword [edi + 8]
lea edx, [eax*8]
push edx
call fcn.007604a7
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
shl eax, 3
push eax
call fcn.007604a7
mov esi, eax
mov eax, dword [edi + 8]
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x5016ce
mov eax, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x1c], eax
mov ebx, dword [edi + 4]
lea eax, [ecx*8]
mov edx, eax
add edx, ebx
mov ebx, dword [edx]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [edx + 4]
fild dword [esp + 0x28]
mov dword [esp + 0x2c], edx
lea edx, [eax + esi]
fstp qword [ebx + edx]
mov ebx, dword [edi + 4]
add eax, ebx
inc ecx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
fild dword [esp + 0x34]
fstp qword [edx]
cmp ecx, dword [edi + 8]
jl 0x501683
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
lea eax, [ecx*8 + 0x30]
push eax
call fcn.007604a7
mov edx, dword [esp + 0x10]
mov edi, eax
lea eax, [edx*8 + 0x30]
push eax
call fcn.007604a7
mov dword [esp + 0x24], eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00501190
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 0x40a77000
push 0
push 4
push edi
push esi
push edx
push eax
push ebx
call fcn.004ff510
push ebx
call fcn.007604d0
mov ecx, dword [esp + 0x50]
add esp, 0x40
push ecx
call fcn.007604d0
push esi
call fcn.007604d0
push edi
call fcn.007604d0
mov edx, dword [esp + 0x28]
push edx
call fcn.007604d0
add esp, 0x10
mov dword [esp + 0x38], method.CCommandLineInfo.virtual_0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], 3
test eax, eax
je 0x50176f
push eax
call fcn.007604d0
add esp, 4
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret