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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor edx, edx
push ebx
mov ebx, dword [ebp + 8]
push esi
or esi, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebx + 0xc], edx
ja 0x5b0264
mov al, dl
cmp dword [ebx + 8], esi
jb 0x5b0266
mov al, 1
mov byte [ebp + 0xb], al
cmp dword [ebx + 0x14], edx
ja 0x5b0275
mov cl, dl
cmp dword [ebx + 0x10], esi
jb 0x5b0277
mov cl, 1
mov byte [ebp - 1], cl
cmp dword [ebx + 0x4c], edx
ja 0x5b0284
cmp dword [ebx + 0x48], esi
jb 0x5b0286
mov dl, 1
mov byte [ebp - 2], dl
test cl, cl
jne 0x5b0298
test al, al
jne 0x5b0298
mov byte [ebp - 6], al
test dl, dl
je 0x5b029c
mov byte [ebp - 6], 1
push 0x2014b50
mov ecx, edi
call fcn.005afff4
movzx eax, byte [ebx + 0x40]
mov ecx, edi
push eax
call fcn.005b004c
movzx eax, byte [ebx + 0x41]
mov ecx, edi
push eax
call fcn.005b004c
push dword [ebp - 6]
mov ecx, edi
push ebx
call fcn.005b04ad
push dword [ebx + 0x1c]
mov ecx, edi
call fcn.005afff4
cmp byte [ebp - 1], 0
mov eax, esi
jne 0x5b02e0
mov eax, dword [ebx + 0x10]
push eax
mov ecx, edi
call fcn.005afff4
cmp byte [ebp + 0xb], 0
mov eax, esi
jne 0x5b02f3
mov eax, dword [ebx + 8]
push eax
mov ecx, edi
call fcn.005afff4
movzx eax, word [ebx + 0x28]
mov ecx, edi
push eax
call fcn.005affd3
mov al, byte [ebp - 1]
movzx ecx, byte [ebp - 2]
movzx eax, al
add cx, ax
mov al, byte [ebp + 0xb]
movzx eax, al
add cx, ax
movzx eax, cx
lea ecx, [ebx + 0x50]
shl ax, 3
mov dword [ebp - 0xc], eax
call fcn.005aff54
movzx ecx, ax
mov eax, dword [ebp - 0xc]
add eax, 4
add eax, ecx
cmp byte [ebp - 6], 0
movzx eax, ax
cmovne ecx, eax
xor eax, eax
cmp byte [ebx + 0x88], al
push 0x24
pop edx
cmovne eax, edx
add cx, ax
movzx eax, cx
mov ecx, edi
push eax
call fcn.005affd3
movzx eax, word [ebx + 0x64]
mov ecx, edi
push eax
mov dword [ebp - 0x10], eax
call fcn.005affd3
push 0
mov ecx, edi
call fcn.005affd3
movzx eax, word [ebx + 0x42]
mov ecx, edi
push eax
call fcn.005affd3
push dword [ebx + 0x44]
mov ecx, edi
call fcn.005afff4
cmp byte [ebp - 2], 0
jne 0x5b0397
mov esi, dword [ebx + 0x48]
push esi
mov ecx, edi
call fcn.005afff4
mov esi, dword [ebx + 0x28]
mov ecx, edi
push esi
push dword [ebx + 0x24]
call fcn.0059ec35
add dword [edi + 0x38], esi
adc dword [edi + 0x3c], 0
cmp byte [ebp - 6], 0
je 0x5b0406
push 1
mov ecx, edi
call fcn.005affd3
push dword [ebp - 0xc]
mov ecx, edi
call fcn.005affd3
cmp byte [ebp + 0xb], 0
je 0x5b03e0
push dword [ebx + 0xc]
mov ecx, edi
push dword [ebx + 8]
call fcn.005b0019
cmp byte [ebp - 1], 0
je 0x5b03f3
push dword [ebx + 0x14]
mov ecx, edi
push dword [ebx + 0x10]
call fcn.005b0019
cmp byte [ebp - 2], 0
je 0x5b0406
push dword [ebx + 0x4c]
mov ecx, edi
push dword [ebx + 0x48]
call fcn.005b0019
cmp byte [ebx + 0x88], 0
je 0x5b047e
push 0xa
mov ecx, edi
call fcn.005affd3
push 0x20
mov ecx, edi
call fcn.005affd3
push 0
mov ecx, edi
call fcn.005afff4
push 1
mov ecx, edi
call fcn.005affd3
push 0x18
mov ecx, edi
call fcn.005affd3
push dword [ebx + 0x70]
mov ecx, edi
call fcn.005afff4
push dword [ebx + 0x74]
mov ecx, edi
call fcn.005afff4
push dword [ebx + 0x78]
mov ecx, edi
call fcn.005afff4
push dword [ebx + 0x7c]
mov ecx, edi
call fcn.005afff4
push dword [ebx + 0x80]
mov ecx, edi
call fcn.005afff4
push dword [ebx + 0x84]
mov ecx, edi
call fcn.005afff4
lea eax, [ebx + 0x50]
mov ecx, edi
push eax
call fcn.005b0580
mov eax, dword [ebp - 0x10]
test ax, ax
je 0x5b04a6
movzx esi, ax
mov ecx, edi
push esi
push dword [ebx + 0x60]
call fcn.0059ec35
add dword [edi + 0x38], esi
adc dword [edi + 0x3c], 0
pop edi
pop esi
pop ebx
leave
ret 4