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

Disassembly:
sub esp, 0x68
mov eax, dword [0x6f1114]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
push 0x5c
mov edi, dword [esi + 0x134]
push dword [edi]
call fcn.004b94c0
mov ecx, dword [esi + 0x8dc]
add esp, 8
mov dword [esp + 0x10], ecx
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov dword [esi + 0x130], ecx
test eax, eax
je 0x50f940
cmp byte [eax + 1], 0
je 0x50f940
mov eax, dword [esi + 0xc20]
or eax, dword [esi + 0xc24]
mov eax, 0x8109
jne 0x50f6db
mov eax, 0x8301
push dword [esi + 0x50c]
push eax
push dword [edi]
call fcn.004fba80
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x18], ebx
test ebx, ebx
jns 0x50f71e
push dword [edi]
push str.Cant_open__s_for_writing
push esi
call fcn.004f8a30
add esp, 0xc
mov eax, 0x17
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004a1496
add esp, 0x68
ret
mov ecx, dword [esi + 0xc38]
mov eax, dword [esi + 0xc3c]
cmp ecx, 0xffffffff
jne 0x50f733
cmp eax, ecx
je 0x50f73e
push eax
push ecx
push esi
call fcn.00501cc0
add esp, 0xc
cmp dword [esi + 0xc24], 0
jg 0x50f7a6
jl 0x50f752
cmp dword [esi + 0xc20], 0
jae 0x50f7a6
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.004c7998
add esp, 8
test eax, eax
je 0x50f792
push ebx
call fcn.004d1dba
push dword [edi]
push str.Cant_get_the_size_of__s
push esi
call fcn.004f8a30
add esp, 0x10
mov eax, 0x17
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004a1496
add esp, 0x68
ret
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esi + 0xc20], eax
mov dword [esi + 0xc24], ecx
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x4c8]
push esi
call fcn.0051f340
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x50f91f
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x50f90c
mov ecx, dword [esi + 0xc20]
mov eax, ecx
mov edx, dword [esi + 0xc24]
or eax, edx
je 0x50f83b
xor eax, eax
mov ebx, edi
cmp eax, edx
jg 0x50f814
jl 0x50f7fc
cmp ebx, ecx
ja 0x50f814
mov eax, dword [esp + 0x10]
xor edi, edi
sub ecx, ebx
mov dword [esi + 0xc20], ecx
sbb edx, edi
mov dword [esi + 0xc24], edx
jmp 0x50f83f
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
add eax, ecx
movlpd qword [esp + 0x24], xmm0
mov edx, dword [esp + 0x28]
sub edi, ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0xc20], ecx
mov dword [esi + 0xc24], edx
jmp 0x50f83f
mov eax, dword [esp + 0x10]
push edi
push eax
push dword [esp + 0x20]
call fcn.004f1820
add esp, 0xc
cmp eax, edi
jne 0x50f8e6
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x14], eax
adc ebp, 0
push ebp
push eax
push esi
call fcn.00501ca0
push esi
call fcn.00502020
add esp, 0x10
test eax, eax
jne 0x50f8c0
lea eax, [esp + 0x2c]
push eax
call fcn.0051e300
sub esp, 0xc
mov ecx, esp
movups xmm0, xmmword [eax]
push esi
movups xmmword [ecx], xmm0
call fcn.00521e40
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x50f7b2
push dword [esp + 0x18]
call fcn.004d1dba
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004a1496
add esp, 0x68
ret
push dword [esp + 0x18]
mov ebx, 0x2a
call fcn.004d1dba
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004a1496
add esp, 0x68
ret
push dword [esp + 0x18]
mov ebx, 0x37
call fcn.004d1dba
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004a1496
add esp, 0x68
ret
push esi
call fcn.00502020
add esp, 4
mov ecx, 0x2a
test eax, eax
cmovne ebx, ecx
push dword [esp + 0x18]
call fcn.004d1dba
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004a1496
add esp, 0x68
ret
mov ecx, dword [esp + 0x74]
mov eax, 0x25
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a1496
add esp, 0x68
ret