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

Disassembly:
sub esp, 0x130
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
xor esi, esi
push edi
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x20], esi
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x5380ff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret
cmp dword [ebx], 0
jge 0x538356
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [ebx + 0x80]
lea edx, [ecx + eax*4]
mov eax, dword [ebx + 0x78]
test eax, eax
mov dword [esp + 0x3c], edx
jne 0x53834f
xor eax, eax
mov ax, word [ebx + 0x84]
push eax
call fcn.00541a70
mov edi, eax
xor ecx, ecx
add esp, 4
cmp edi, ecx
mov dword [esp + 0x2c], edi
je 0x538389
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], ecx
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
je 0x538334
mov ecx, dword [0x614720]
lea esi, [eax*4]
push 0x10006
push esi
call dword [ecx + 0x108]
mov edx, dword [0x614720]
push 0x10507
push esi
mov dword [esp + 0x38], eax
call dword [edx + 0x108]
mov dword [esp + 0x34], eax
mov eax, dword [0x614720]
push 0x10507
push esi
call dword [eax + 0x108]
mov ebp, eax
xor eax, eax
add esp, 0x18
cmp word [ebx + 0x84], ax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], eax
jbe 0x5382f6
mov ecx, dword [ebx + 4]
xor esi, esi
xor edi, edi
lea edx, [ecx + eax*8]
mov ecx, dword [esp + 0x3c]
xor eax, eax
cmp word [esp + 0x18], si
mov ax, word [edx + 6]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
jbe 0x5381fd
mov ebp, dword [esp + 0x28]
mov ecx, esi
and ecx, 0xffff
cmp dword [ebp + ecx*4], eax
je 0x5381fd
inc esi
cmp si, word [esp + 0x18]
jb 0x5381e3
cmp si, word [esp + 0x18]
jne 0x53821d
mov ebp, dword [esp + 0x28]
mov ecx, esi
and ecx, 0xffff
mov dword [ebp + ecx*4], eax
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
test eax, eax
je 0x538223
mov edi, dword [eax]
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp word [esp + 0x10], cx
jbe 0x538245
mov ebp, ecx
and ebp, 0xffff
cmp dword [eax + ebp*4], edi
je 0x538245
inc ecx
cmp cx, word [esp + 0x10]
jb 0x538230
cmp cx, word [esp + 0x10]
jne 0x538260
mov ebp, ecx
and ebp, 0xffff
mov dword [eax + ebp*4], edi
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov edi, dword [eax + 8]
xor eax, eax
cmp word [esp + 0x14], ax
jbe 0x53828e
mov ebx, eax
and ebx, 0xffff
cmp dword [ebp + ebx*4], edi
je 0x53828a
inc eax
cmp ax, word [esp + 0x14]
jb 0x538274
mov ebx, dword [esp + 0x1c]
cmp ax, word [esp + 0x14]
jne 0x5382ae
mov ebx, eax
and ebx, 0xffff
mov dword [ebp + ebx*4], edi
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x14], edi
push eax
push ecx
mov cx, word [edx + 6]
xor eax, eax
mov ax, word [edx + 4]
mov edi, dword [esp + 0x34]
push esi
push ecx
xor ecx, ecx
push eax
mov cx, word [edx + 2]
xor eax, eax
mov ax, word [edx]
push ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
push edi
call fcn.00541be0
mov eax, dword [esp + 0x54]
xor edx, edx
mov dx, word [ebx + 0x84]
add esp, 0x24
inc eax
cmp eax, edx
mov dword [esp + 0x30], eax
jl 0x5381bf
mov eax, dword [esp + 0x28]
mov ecx, dword [0x614720]
push eax
call dword [ecx + 0x10c]
mov edx, dword [esp + 0x28]
mov eax, dword [0x614720]
push edx
call dword [eax + 0x10c]
mov ecx, dword [0x614720]
push ebp
call dword [ecx + 0x10c]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x150]
add esp, 0xc
xor ecx, ecx
test byte [ebp + 8], 1
je 0x53833e
push 1
jmp 0x53833f
push ecx
push edi
call fcn.005475d0
add esp, 8
test eax, eax
je 0x538380
mov dword [ebx + 0x78], eax
mov ebx, dword [esp + esi*4 + 0x40]
dec esi
jmp 0x538363
mov eax, ebx
mov ebx, dword [ebx + 8]
inc esi
mov edx, dword [eax + 0xc]
mov dword [esp + esi*4 + 0x40], edx
test esi, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
jge 0x5380ff
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
push edi
call fcn.00541b60
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret