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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x34]
xor ecx, ecx
push esi
add edx, 2
mov esi, SysReAllocString
push edi
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0xffff
mov dword [ebp - 0xc], esi
cmp edx, ecx
jle 0x50dd1c
lea edi, [ebx + 0x1648]
lea ebx, [ebx]
test byte [edi + 0x10], 1
je 0x50dd11
mov eax, dword [edi]
inc dword [ebp - 4]
cmp eax, esi
jge 0x50dcfc
mov esi, dword [edi + 8]
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 0xc], esi
jmp 0x50dd0e
mov eax, dword [edi + 8]
mov esi, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jge 0x50dd11
cmp dword [edi], esi
jne 0x50dd11
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
inc ecx
add edi, 0x348
cmp ecx, edx
jl 0x50dce0
mov ecx, dword [ebx + 0x1070]
test ecx, ecx
jne 0x50dd30
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 1
je 0x50dd3b
cmp esi, dword [ebx + 0x4c]
jge 0x50dd41
cmp dword [ebp - 4], 0
ja 0x50dd57
mov eax, dword [ebx + 0x48]
mov edx, dword [ebp - 4]
lea eax, [eax + eax*2]
cmp edx, dword [ecx + eax*4 + 0x584]
jbe 0x50dfd2
mov esi, dword [ebp - 0x10]
imul esi, esi, 0x348
and dword [esi + ebx + 0x1658], 0xfffffffe
cmp dword [esi + ebx + 0x1630], 1
lea esi, [esi + ebx + 0x1630]
jne 0x50dd26
mov eax, dword [ebx]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [edi + 0xc], edx
mov eax, dword [ebx + 0x1090]
mov dword [edi + 0x20], eax
mov ecx, dword [ebx + 0x1094]
mov dword [edi + 0x24], ecx
mov edx, dword [esi + 0x10]
mov dword [edi + 0x18], edx
mov eax, dword [esi + 0x14]
mov dword [edi + 0x1c], eax
cmp dword [esi + 0x340], 0
mov ecx, dword [esi + 0x300]
je 0x50de53
mov eax, dword [ebx + 0x1090]
imul eax, dword [esi + 0x14]
mov edx, dword [ebx + 0x7230]
push eax
push ecx
push eax
push edx
call fcn.00452c08
mov eax, dword [ebx + 0x1094]
imul eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x304]
cdq
sub eax, edx
mov edx, dword [ebx + 0x7234]
sar eax, 1
push eax
push ecx
push eax
push edx
call fcn.00452c08
mov eax, dword [ebx + 0x1094]
imul eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x308]
cdq
sub eax, edx
mov edx, dword [ebx + 0x7238]
sar eax, 1
push eax
push ecx
push eax
push edx
call fcn.00452c08
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x18]
push eax
mov eax, dword [ebx + 0x7230]
push ecx
push edx
push eax
call fcn.00511590
mov ecx, dword [ebx + 0x7230]
mov dword [edi + 0x28], ecx
mov edx, dword [ebx + 0x7234]
mov dword [edi + 0x2c], edx
mov eax, dword [ebx + 0x7238]
add esp, 0x40
jmp 0x50de65
mov dword [edi + 0x28], ecx
mov edx, dword [esi + 0x304]
mov dword [edi + 0x2c], edx
mov eax, dword [esi + 0x308]
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x310]
mov dword [edi + 0x34], ecx
mov edx, dword [esi + 0x314]
mov dword [edi + 0xa4], edx
mov eax, dword [esi + 0x31c]
mov ecx, dword [eax]
mov dword [edi + 0x5c], ecx
mov edx, dword [esi + 0x31c]
mov eax, dword [edx + 4]
mov dword [edi + 0x60], eax
mov ecx, dword [esi + 0x31c]
mov edx, dword [ecx + 8]
mov dword [edi + 0x64], edx
mov eax, dword [esi + 0x31c]
mov ecx, dword [eax + 0xc]
mov dword [edi + 0x68], ecx
mov edx, dword [esi + 0x31c]
mov eax, dword [edx + 0x10]
mov dword [edi + 0x6c], eax
mov ecx, dword [esi + 0x31c]
mov edx, dword [ecx + 0x14]
mov dword [edi + 0x70], edx
mov eax, dword [esi + 0x31c]
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x74], ecx
mov edx, dword [esi + 0x31c]
mov eax, dword [edx + 0x1c]
mov dword [edi + 0x78], eax
mov ecx, dword [esi + 0x31c]
mov edx, dword [ecx + 0x20]
mov dword [edi + 0x7c], edx
mov eax, dword [esi + 0x31c]
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x80], ecx
mov edx, dword [esi + 0x31c]
mov eax, dword [edx + 0x28]
mov dword [edi + 0x84], eax
mov ecx, dword [esi + 0x31c]
mov edx, dword [ecx + 0x2c]
mov dword [edi + 0x88], edx
mov eax, dword [esi + 0x31c]
mov ecx, dword [eax + 0x30]
mov dword [edi + 0x8c], ecx
mov edx, dword [esi + 0x31c]
mov eax, dword [edx + 0x34]
mov dword [edi + 0x90], eax
mov ecx, dword [esi + 0x31c]
mov edx, dword [ecx + 0x38]
mov dword [edi + 0x94], edx
mov eax, dword [esi + 0x31c]
mov ecx, dword [eax + 0x3c]
mov dword [edi + 0x98], ecx
mov edx, dword [esi + 0x31c]
mov eax, dword [edx + 0x40]
mov dword [edi + 0x9c], eax
mov ecx, dword [esi + 0x31c]
mov edx, dword [ecx + 0x44]
mov dword [edi + 0xa0], edx
mov eax, 2
sub eax, dword [esi + 0x320]
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x324]
mov dword [esi + 0x320], 2
mov dword [edi + 0x40], ecx
mov edx, dword [esi + 0x328]
mov dword [edi + 0x3c], edx
mov eax, dword [esi + 0x32c]
mov dword [edi + 0x48], eax
mov ecx, dword [esi + 0x330]
mov dword [edi + 0x4c], ecx
mov edx, dword [esi + 0x334]
mov dword [edi + 0x50], edx
mov eax, dword [esi + 0x338]
mov dword [edi + 0x54], eax
mov ecx, dword [esi + 0x33c]
xor eax, eax
mov dword [edi + 0x58], ecx
mov dword [edi + 0x14], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret