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

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
cmp ebx, 0xffffffff
push edi
mov esi, ecx
jne 0x517aa8
mov ebx, dword [esi + 0x94]
mov ebp, dword [esp + 0x3c]
cmp ebp, 0xffffffff
jne 0x517abd
mov eax, dword [esi + 0x98]
mov dword [esp + 0x3c], eax
mov ebp, eax
mov eax, dword [esi + 0x90]
test eax, eax
jne 0x517b79
mov eax, dword [esi + 0x8c]
mov edx, 3
mov edi, 2
mov dword [esp + 0x20], 5
shl eax, 2
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov ecx, dword [esp + eax + 0x20]
mov dword [esp + 0x18], ebx
add ecx, ebp
cmp ecx, 0xa
jle 0x517b30
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov ecx, dword [esp + eax + 0x20]
mov ebp, 0xa
sub ebp, ecx
mov edx, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
lea eax, [ebp + ebp*4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], 5
lea edi, [ebx + eax*2]
lea ebx, [esi + 0xb0]
lea edx, [ecx + edi*8]
mov dword [esp + 0x14], edx
mov ecx, dword [ebx]
test ecx, ecx
je 0x517b66
push 0x7083
call fcn.004b5da0
mov eax, dword [esp + 0x38]
add ebx, 4
dec eax
mov dword [esp + 0x38], eax
jne 0x517b56
jmp 0x517c7d
mov ecx, dword [esi + 0x8c]
mov edx, 3
mov edi, 2
mov dword [esp + 0x20], 5
shl ecx, 2
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov eax, dword [esp + ecx + 0x20]
add eax, ebx
cmp eax, 0xa
jle 0x517bda
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov eax, dword [esp + ecx + 0x20]
mov ebx, 0xa
sub ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov ebx, dword [esp + ecx + 0x20]
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
mov edx, dword [esp + ecx + 0x20]
mov edi, 0xb
mov eax, 0xb
sub edi, edx
imul edi, dword [esp + 0x3c]
sub eax, ebx
mov ebx, dword [esi + 0x78]
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x38], 5
lea eax, [eax + eax*4]
lea eax, [ebx + eax*2]
lea ebx, [esi + 0xb0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
add edi, eax
lea edx, [ecx + edi*8]
mov dword [esp + 0x14], edx
mov ecx, dword [ebx]
test ecx, ecx
je 0x517c6f
push 0x7082
call fcn.004b5da0
mov eax, dword [esp + 0x38]
add ebx, 4
dec eax
mov dword [esp + 0x38], eax
jne 0x517c5f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add edi, ecx
mov dword [esi + 0x94], eax
push edi
mov ecx, esi
mov dword [esi + 0x98], ebp
call fcn.004b5da0
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [0x5b3a6c]
mov ecx, dword [ecx + 0x24]
call fcn.004b5980
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
add eax, 0xa
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
mov ecx, esi
push eax
call dword [edx + 0x10]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8