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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
xor edx, edx
push edi
cmp dword [esi + 0x50], edx
je 0x50e466
cmp dword [esi + 0x70], 0x32
jle 0x50e46e
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edx
mov ebp, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
dec ebp
and ebp, dword [esp + 0x38]
imul ebp, ecx
cmp ecx, edx
jle 0x50e4c3
mov eax, dword [esi + 0x68]
lea edi, [ebp*8]
sub edi, ebp
add edi, edi
add edi, edi
mov dword [esp + 0x14], edi
add eax, edi
test dword [eax + 8], 0x80000000
je 0x50e4bb
mov edi, dword [esp + 0x38]
cmp dword [eax], edi
jne 0x50e4bb
movsx edi, word [eax + 4]
cmp edi, dword [esp + 0x3c]
jne 0x50e4bb
movsx edi, word [eax + 6]
cmp edi, dword [esp + 0x40]
je 0x50e4f2
inc edx
add eax, 0x1c
cmp edx, ecx
jl 0x50e496
mov edx, dword [esp + 0x40]
mov eax, dword [esi]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push ecx
push edx
mov ecx, esi
call eax
test eax, eax
jne 0x50e5ae
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
mov ecx, dword [esi + 0x68]
lea edi, [edx + ebp]
lea eax, [edi*8]
sub eax, edi
add eax, eax
add eax, eax
mov ebx, dword [eax + ecx + 0xc]
mov ecx, dword [esp + 0x44]
mov dword [ecx], ebx
mov ebx, dword [esi + 0x68]
mov ebx, dword [eax + ebx + 0x10]
mov dword [ecx + 4], ebx
mov ebx, dword [esi + 0x68]
mov ebx, dword [eax + ebx + 0x14]
mov dword [ecx + 8], ebx
mov ebx, dword [esi + 0x68]
mov ebx, dword [eax + ebx + 0x18]
xor ebp, ebp
mov dword [ecx + 0xc], ebx
cmp dword [esi + 0x7c], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], edi
jle 0x50e57b
mov edi, dword [esp + 0x14]
cmp ebp, edx
je 0x50e56e
mov edx, dword [esi + 0x68]
mov ebx, dword [edi + edx + 8]
mov edx, dword [edx + eax + 8]
and ebx, 0x7fffffff
and edx, 0x7fffffff
cmp ebx, edx
jge 0x50e56a
mov edx, dword [esi + 0x68]
inc dword [edi + edx + 8]
lea edx, [edi + edx + 8]
mov edx, dword [esp + 0x10]
inc ebp
add edi, 0x1c
cmp ebp, dword [esi + 0x7c]
jl 0x50e540
mov edi, dword [esp + 0x38]
mov edx, dword [esi + 0x68]
mov dword [eax + edx + 8], SysReAllocStringLen
mov eax, dword [esi + 0x50]
mov dword [ecx + 0x10], eax
mov edx, dword [esi + 0x74]
imul edx, edi
add edx, dword [esi + 0x64]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], 0
mov eax, 1
pop ebx
add esp, 0x24
ret 0x10
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x6c]
jg 0x50e6ed
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esi + 0x70]
jg 0x50e6ed
cmp dword [esi + 0x50], 0
je 0x50e5d7
imul ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x50e5e4
add eax, 7
sar eax, 3
imul eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x7c]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x10], ecx
test eax, eax
jle 0x50e6af
lea edi, [ebp*8]
sub edi, ebp
add edi, edi
add edi, edi
mov edx, dword [esi + 0x68]
mov edx, dword [edi + edx + 8]
dec eax
and edx, 0x7fffffff
cmp edx, eax
mov eax, dword [esi + 0x68]
jne 0x50e694
mov dword [edi + eax + 8], SysReAllocStringLen
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x38]
mov dword [edi + edx], eax
mov edx, dword [esi + 0x68]
mov ax, word [esp + 0x3c]
mov word [edi + edx + 4], ax
mov edx, dword [esi + 0x68]
mov ax, word [esp + 0x40]
mov word [edi + edx + 6], ax
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x18]
mov dword [edi + edx + 0xc], eax
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x1c]
mov dword [edi + edx + 0x10], eax
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x20]
mov dword [edi + edx + 0x14], eax
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x24]
mov dword [edi + edx + 0x18], eax
mov edx, dword [esp + 0x2c]
lea ebx, [ecx + ebp]
imul ebx, dword [esi + 0x74]
mov ecx, dword [esp + 0x14]
add ebx, dword [esi + 0x64]
push ecx
push edx
push ebx
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x50e69c
inc dword [edi + eax + 8]
lea eax, [edi + eax + 8]
mov eax, dword [esi + 0x7c]
inc ecx
add edi, 0x1c
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x50e604
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0x44]
mov ecx, 7
lea esi, [esp + 0x18]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], 0
je 0x50e6fc
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00497230
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0x10
mov edi, dword [esp + 0x44]
mov ecx, 7
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0x10