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

Disassembly:
push 0x1c
mov eax, 0x605552
call fcn.005574a4
mov esi, ecx
mov dword [ebp - 0x20], esi
xor edi, edi
mov ebx, edi
cmp dword [esi + 0x7c], edi
jbe 0x5010df
mov eax, dword [esi + 0x78]
mov ecx, ebx
shl ecx, 2
mov edx, dword [ecx + eax]
mov eax, dword [esi + 8]
add eax, ecx
mov dword [ebp - 0x18], edx
cmp byte [esi + 0x60], 0
je 0x501083
mov ecx, dword [eax]
xor edi, edi
inc edi
jmp 0x501088
mov edi, dword [eax]
xor ecx, ecx
inc ecx
lea eax, [edx + 0x70]
mov dword [ebp - 0x24], ecx
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.004fff89
test edi, edi
je 0x5010ae
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.004f0d85
sub edi, 1
jne 0x50109f
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
add eax, 0x7c
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.004fffad
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x5010d7
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.004ffcf9
sub edi, 1
jne 0x5010c8
mov esi, dword [ebp - 0x20]
inc ebx
cmp ebx, dword [esi + 0x7c]
jb 0x501063
xor edi, edi
mov ebx, edi
cmp dword [esi + 0x18], edi
jbe 0x501220
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x3c]
mov ecx, dword [edx + ebx*8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x20], ecx
sub edx, dword [eax + ecx*4]
cmp byte [esi + 0x60], 0
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x14]
je 0x50111d
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + ebx*8 + 4]
mov dword [ebp - 0x20], ecx
jmp 0x501124
mov eax, dword [edx + ebx*8 + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov edx, eax
mov cl, byte [esi + 0x60]
and dword [ebp - 0x1c], 0
test cl, cl
cmovne edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
xor edx, edx
test cl, cl
mov ecx, dword [esi + 0x78]
cmovne edx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x20]
push edx
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x70]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x6c]
push ecx
mov ecx, dword [eax + ebx*4]
call fcn.00503599
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 0x78]
mov byte [ebp - 4], 1
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x50118e
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
push 0x6268ac
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x24]
mov eax, dword [esi + 0x78]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x5011af
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x6268ac
push ecx
call dword [eax]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x5011f0
test ecx, ecx
je 0x5011f0
mov ecx, dword [eax]
push 0x80000
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push 0x80000
push dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x501201
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 3
test eax, eax
je 0x501212
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x5010ea
cmp byte [esi + 0x60], 0
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x78]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
je 0x501240
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx]
call fcn.004ada96
jmp 0x50124f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [eax]
mov ecx, dword [ecx]
call fcn.004adac0
cmp dword [esi + 0x24], edi
jbe 0x5012a4
sub dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + edx*4]
mov eax, dword [esi + 0x78]
mov eax, dword [eax + ecx*4]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x30]
sub edx, dword [eax + ecx*4]
cmp byte [esi + 0x60], 0
mov ecx, dword [ebp + 8]
je 0x50128e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [eax + ebx]
mov ecx, dword [ecx + edx*4]
call fcn.004adac0
jmp 0x50129b
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx + edx*4]
call fcn.004ada96
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jb 0x501257
xor eax, eax
call fcn.00557472
ret 8