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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, ecx
and dword [ebp - 0x1c], 0
push edi
and dl, 2
mov dword [ebp - 0x14], 3
mov byte [ebp - 1], dl
mov eax, dword [esi]
movzx ecx, word [esi + 0x46]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
movsx eax, byte [esi + 0x44]
mov dword [ebp - 0x18], eax
mov edi, dword [esi + eax*4 + 0x74]
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ebx, cx
and ebx, eax
add ebx, dword [edi + 0x38]
test dl, dl
je 0x5b5ea9
cmp byte [edi + 8], 0
je 0x5b5e9a
push ebx
push edi
call fcn.005afc50
pop ecx
pop ecx
movzx ecx, ax
xor edx, edx
movzx eax, word [edi + 0x14]
add eax, 2
add ecx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
add eax, eax
div dword [ebp - 0x14]
cmp ecx, eax
jg 0x5b5e9a
mov dword [ebp - 0x1c], 1
jmp 0x5b5ea9
mov ecx, esi
call fcn.005af650
test eax, eax
jne 0x5b607c
cmp byte [edi + 8], 0
jne 0x5b5ec1
push 0
push esi
call fcn.005b3096
pop ecx
pop ecx
test eax, eax
jne 0x5b607c
test byte [esi + 0x40], 0x20
je 0x5b5edc
mov edx, dword [esi + 0x34]
mov ecx, dword [ebp - 0xc]
push esi
call fcn.005af6e5
pop ecx
test eax, eax
jne 0x5b607c
cmp dword [esi + 0x70], 0
jne 0x5b5ef8
mov edx, dword [esi + 0x34]
mov ecx, dword [ebp - 8]
push 0
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.005af568
add esp, 0xc
mov ecx, dword [edi + 0x48]
call fcn.005ac718
test eax, eax
jne 0x5b607c
lea eax, [ebp - 0x40]
mov edx, ebx
push eax
mov ecx, edi
call fcn.005b3927
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
pop ecx
push eax
movzx eax, word [ebp - 0x2e]
mov ecx, edi
push eax
call fcn.005b3c9c
mov eax, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x5b607c
cmp byte [edi + 8], al
jne 0x5b5ff8
movsx eax, byte [esi + 0x44]
mov ebx, dword [esi + eax*4 + 0x74]
mov eax, dword [ebp - 0x18]
movzx ecx, word [ebx + 0x16]
mov eax, dword [esi + eax*4 + 0x78]
mov edx, dword [ebx + 0x38]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x18]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jae 0x5b5f8e
mov ecx, 0x10971
call fcn.005f272e
jmp 0x5b607c
push ecx
push ebx
call dword [ebx + 0x4c]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xc], eax
call fcn.005ac718
mov dword [ebp - 8], eax
test eax, eax
jne 0x5b5fd8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0xc]
add eax, 4
push eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffffc
push eax
call fcn.005b3db2
add esp, 0x14
movzx edx, word [ebx + 0x16]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
dec edx
mov ecx, ebx
call fcn.005b3c9c
mov eax, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x5b607c
mov ecx, esi
call fcn.005b59c9
mov edx, eax
test edx, edx
jne 0x5b607a
movsx ecx, byte [esi + 0x44]
mov ebx, dword [ebp - 0x18]
cmp ecx, ebx
jle 0x5b6039
mov dl, byte [esi + 0x44]
movsx eax, dl
dec dl
mov ecx, dword [esi + eax*4 + 0x74]
mov byte [esi + 0x44], dl
call fcn.005b09af
movsx eax, byte [esi + 0x44]
cmp eax, ebx
jg 0x5b6010
mov ecx, esi
call fcn.005b59c9
mov edx, eax
test edx, edx
jne 0x5b607a
cmp dword [ebp - 0x1c], 0
je 0x5b6065
mov byte [esi + 0x42], 2
movzx eax, word [edi + 0x16]
cmp dword [ebp - 0x10], eax
jl 0x5b605c
or dword [esi + 0x3c], 0xffffffff
mov ax, word [edi + 0x16]
dec ax
mov word [esi + 0x46], ax
jmp 0x5b607a
mov dword [esi + 0x3c], 1
jmp 0x5b607a
mov ecx, esi
call fcn.005b28a1
cmp byte [ebp - 1], 0
mov edx, eax
je 0x5b607a
push 3
pop eax
mov byte [esi + 0x42], al
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret