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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi]
mov edx, dword [esi + 0x2c]
add ecx, 0x7ffffda
mov eax, ecx
mov ebx, dword [esi + 0x1c]
and eax, 0x3ffffff
shr ecx, 0x1a
sub ecx, dword [esi + 4]
add edx, 0x3fffffe
mov dword [ebp - 0x3c], eax
add ecx, edx
mov edx, dword [esi + 0x30]
mov eax, ecx
and eax, 0x1ffffff
shr ecx, 0x19
sub ecx, dword [esi + 8]
add edx, 0x7fffffe
mov dword [ebp - 0x38], eax
add ecx, edx
mov edx, dword [esi + 0x34]
mov eax, ecx
and eax, 0x3ffffff
shr ecx, 0x1a
sub ecx, dword [esi + 0xc]
add edx, 0x3fffffe
mov dword [ebp - 0x34], eax
add ecx, edx
mov eax, ecx
mov edi, dword [esi + 0x48]
and eax, 0x1ffffff
shr ecx, 0x19
sub ecx, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x38]
add eax, 0x7fffffe
mov dword [ebp - 8], edi
add eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x14]
add eax, 0x3fffffe
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x18]
add eax, 0x7fffffe
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x44]
mov esi, dword [esi + 0x20]
sub eax, ebx
add eax, 0x3fffffe
sub edi, esi
mov dword [ebp - 0x20], eax
add edi, 0x7fffffe
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp + 0xc]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x24]
mov eax, edx
sub eax, ecx
add eax, 0x3fffffe
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
add eax, dword [edi + 0x28]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 4]
add eax, dword [edi + 0x2c]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 8]
add eax, dword [edi + 0x30]
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x34]
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0x10]
add eax, dword [edi + 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0x14]
add eax, dword [edi + 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x18]
add eax, dword [edi + 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x44]
add eax, ebx
movzx ebx, byte [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
add eax, esi
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ecx + edx]
mov dword [ebp - 0x40], eax
lea eax, [ebx + ebx*4]
lea eax, [esi + eax*8]
push eax
lea eax, [ebp - 0x3c]
push eax
push eax
call fcn.004fe980
mov edx, dword [ebp + 8]
mov eax, ebx
xor eax, 1
mov dword [ebp - 0x14], eax
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
push eax
lea eax, [ebp - 0x64]
push eax
push edx
call fcn.004fe980
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, edx
mov eax, dword [ecx]
add eax, dword [ebp - 0x3c]
mov dword [ecx + 0x28], eax
mov eax, dword [ecx + 4]
add eax, dword [ebp - 0x38]
mov dword [ecx + 0x2c], eax
mov eax, dword [ecx + 8]
add eax, dword [ebp - 0x34]
mov dword [ecx + 0x30], eax
mov eax, dword [ecx + 0xc]
add eax, dword [ebp - 0x30]
mov dword [ecx + 0x34], eax
mov eax, dword [ecx + 0x10]
add eax, dword [ebp - 0x2c]
mov dword [ecx + 0x38], eax
mov eax, dword [ecx + 0x14]
add eax, dword [ebp - 0x28]
mov dword [ecx + 0x3c], eax
mov eax, dword [ecx + 0x18]
add eax, dword [ebp - 0x24]
mov dword [ecx + 0x40], eax
mov eax, dword [ecx + 0x1c]
add eax, dword [ebp - 0x20]
mov dword [ecx + 0x44], eax
mov eax, dword [ecx + 0x20]
add eax, dword [ebp - 0x1c]
mov dword [ecx + 0x48], eax
mov eax, dword [ecx + 0x24]
add eax, dword [ebp - 0x18]
mov dword [ecx + 0x4c], eax
mov ecx, dword [ecx]
sub ecx, dword [ebp - 0x3c]
add ecx, 0x7ffffda
mov eax, ecx
shr ecx, 0x1a
sub ecx, dword [ebp - 0x38]
and eax, 0x3ffffff
mov dword [edx], eax
mov eax, dword [esi + 4]
add eax, 0x3fffffe
add ecx, eax
mov eax, ecx
and eax, 0x1ffffff
shr ecx, 0x19
sub ecx, dword [ebp - 0x34]
mov edx, 0x3fffffe
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
add eax, 0x7fffffe
mov ebx, dword [ebp + 0x10]
add ecx, eax
mov eax, ecx
shr ecx, 0x1a
sub ecx, dword [ebp - 0x30]
and eax, 0x3ffffff
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
add eax, 0x3fffffe
add ecx, eax
mov eax, ecx
shr ecx, 0x19
sub ecx, dword [ebp - 0x2c]
and eax, 0x1ffffff
mov dword [esi + 0xc], eax
add ecx, 0x7fffffe
add dword [esi + 0x10], ecx
mov eax, edx
sub eax, dword [ebp - 0x28]
mov ecx, 0x7fffffe
add dword [esi + 0x14], eax
mov eax, ecx
sub eax, dword [ebp - 0x24]
add dword [esi + 0x18], eax
mov eax, edx
sub eax, dword [ebp - 0x20]
add dword [esi + 0x1c], eax
lea eax, [ebx + 0x78]
sub ecx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x18]
add dword [esi + 0x20], ecx
add dword [esi + 0x24], edx
push eax
lea eax, [edi + 0x78]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004fe980
lea eax, [ebx + 0x50]
add esi, 0x78
push eax
lea eax, [edi + 0x50]
push eax
push esi
call fcn.004fe980
mov eax, dword [esi]
add esp, 0x30
mov edx, dword [ebp + 8]
add eax, eax
mov dword [ebp + 0x14], eax
shr eax, 0x1a
mov ecx, dword [edx + 0x7c]
lea ecx, [eax + ecx*2]
mov eax, ecx
shr ecx, 0x19
and eax, 0x1ffffff
mov dword [ebp + 0xc], eax
mov dword [esi + 4], eax
mov eax, dword [edx + 0x80]
lea ecx, [ecx + eax*2]
mov eax, ecx
shr ecx, 0x1a
and eax, 0x3ffffff
mov dword [ebp + 0x10], eax
mov dword [esi + 8], eax
mov eax, dword [edx + 0x84]
lea ecx, [ecx + eax*2]
mov eax, ecx
and eax, 0x1ffffff
shr ecx, 0x19
mov dword [ebp - 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [edx + 0x88]
lea ecx, [ecx + eax*2]
mov eax, ecx
shr ecx, 0x1a
and eax, 0x3ffffff
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x8c]
lea ecx, [ecx + eax*2]
mov ebx, ecx
shr ecx, 0x19
and ebx, 0x1ffffff
mov dword [esi + 0x14], ebx
mov eax, dword [edx + 0x90]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
lea ecx, [ecx + eax*2]
mov edi, ecx
shr ecx, 0x1a
and edi, 0x3ffffff
mov dword [esi + 0x18], edi
mov eax, dword [edx + 0x94]
lea ecx, [ecx + eax*2]
mov esi, ecx
shr ecx, 0x19
and esi, 0x1ffffff
mov dword [edx + 0x94], esi
mov eax, dword [edx + 0x98]
lea ecx, [ecx + eax*2]
mov edx, ecx
shr ecx, 0x1a
and edx, 0x3ffffff
mov dword [ebx + 0x98], edx
mov eax, dword [ebx + 0x9c]
lea eax, [ecx + eax*2]
mov ecx, eax
shr eax, 0x19
imul eax, eax, 0x13
and ecx, 0x1ffffff
mov dword [ebx + 0x9c], ecx
mov ebx, dword [ebp + 0x14]
and ebx, 0x3ffffff
add eax, ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [eax + 0x64], ebx
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x74], ecx
lea eax, [eax + eax*4]
mov dword [ebx + 0x70], edx
lea eax, [eax + 0xa]
mov dword [ebx + 0x68], edi
lea ecx, [ebx + eax*8]
mov dword [ebx + 0x6c], esi
lea edx, [ebx + eax*8]
mov eax, dword [ecx]
add eax, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ecx + 4]
add eax, dword [ebp - 0x38]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
add eax, dword [ebp - 0x34]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
add eax, dword [ebp - 0x30]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
add eax, dword [ebp - 0x2c]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x14]
add eax, dword [ebp - 0x28]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x18]
add eax, dword [ebp - 0x24]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x1c]
add eax, dword [ebp - 0x20]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x20]
add eax, dword [ebp - 0x1c]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x24]
add eax, dword [ebp - 0x18]
mov dword [edx + 0x24], eax
mov edx, ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
lea eax, [eax + eax*4]
lea eax, [eax + 0xa]
mov ecx, dword [edx + eax*8]
lea edx, [edx + eax*8]
sub ecx, dword [ebp - 0x3c]
add ecx, 0x7ffffda
mov eax, ecx
shr ecx, 0x1a
and eax, 0x3ffffff
mov dword [edx], eax
add ecx, dword [edx + 4]
sub ecx, dword [ebp - 0x38]
add ecx, 0x3fffffe
mov eax, ecx
shr ecx, 0x19
and eax, 0x1ffffff
mov dword [edx + 4], eax
add ecx, dword [edx + 8]
sub ecx, dword [ebp - 0x34]
add ecx, 0x7fffffe
mov eax, ecx
shr ecx, 0x1a
and eax, 0x3ffffff
mov dword [edx + 8], eax
add ecx, dword [edx + 0xc]
sub ecx, dword [ebp - 0x30]
add ecx, 0x3fffffe
mov eax, ecx
shr ecx, 0x19
and eax, 0x1ffffff
mov dword [edx + 0xc], eax
add ecx, dword [edx + 0x10]
sub ecx, dword [ebp - 0x2c]
add ecx, 0x7fffffe
mov dword [edx + 0x10], ecx
mov eax, dword [edx + 0x14]
sub eax, dword [ebp - 0x28]
add eax, 0x3fffffe
mov dword [edx + 0x14], eax
mov eax, dword [edx + 0x18]
sub eax, dword [ebp - 0x24]
add eax, 0x7fffffe
mov dword [edx + 0x18], eax
mov eax, dword [edx + 0x1c]
sub eax, dword [ebp - 0x20]
add eax, 0x3fffffe
mov dword [edx + 0x1c], eax
mov eax, dword [edx + 0x20]
sub eax, dword [ebp - 0x1c]
add eax, 0x7fffffe
mov dword [edx + 0x20], eax
mov eax, dword [edx + 0x24]
sub eax, dword [ebp - 0x18]
add eax, 0x3fffffe
mov dword [edx + 0x24], eax
mov esp, ebp
pop ebp
ret