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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x58]
mov eax, dword [eax + 4]
mov dword [esp + 4], 0x2000
mov dword [esp], ebx
mov dword [esp + 0x20], eax
call fcn.0056fcc0
mov edx, esi
test eax, eax
je 0x56e542
lea eax, [esi + 7]
mov edx, eax
sar edx, 0x1f
and edx, 7
add edx, eax
sar edx, 3
mov ebp, dword [ebx]
test byte [ebp + 0x12], 0x10
je 0x56e586
cmp dword [esp + 0x20], 1
je 0x56e718
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebp + 0x18]
test eax, eax
js 0x56e6e0
mov dword [edi], eax
mov eax, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 0
jle 0x56e610
test byte [ebx + 0x5d], 1
jne 0x56e6f0
cmp dword [esp + 0x20], 0x20
ja 0x56e767
mov ebp, dword [ebx + 0x64]
test ebp, ebp
je 0x56e652
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp edx, eax
je 0x56e5d7
mov ebp, dword [esp + 0x20]
sub edx, eax
mov eax, ebp
neg eax
cmp edx, eax
seta cl
cmp ebp, edx
seta al
or cl, al
je 0x56e626
test ebp, ebp
jle 0x56e626
mov dword [esp + 0x10], 0x1ce
mov dword [esp + 0xc], 0x75b87c
mov dword [esp + 8], 0xa2
mov dword [esp + 4], 0xa6
mov dword [esp], 6
call fcn.0055ae30
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi], 0
sete al
add esp, 0x3c
and eax, 0xff
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea eax, [ebx + 0x6c]
mov dword [esp + 8], ecx
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.006c4c40
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov ebp, 1
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0056d980
test eax, eax
je 0x56e57e
cmp dword [esp + 0x20], 1
jbe 0x56e6b6
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x56e6b6
mov esi, dword [edi]
mov ecx, dword [esp + 0x20]
sub esi, ecx
mov eax, dword [esp + 0x24]
mov dword [edi], esi
mov dword [ebx + 0x64], 1
mov edx, dword [edi]
add ebx, 0x6c
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.006c4c40
jmp 0x56e6bd
mov dword [ebx + 0x64], 0
mov eax, 1
test ebp, ebp
je 0x56e57e
mov eax, dword [esp + 0x20]
mov edx, dword [edi]
add edx, eax
mov eax, ebp
mov dword [edi], edx
jmp 0x56e57e
mov dword [edi], 0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0056d980
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, edx
neg eax
mov dword [esp + 0x20], ecx
cmp ecx, eax
seta byte [esp + 0x2f]
cmp dword [esp + 0x20], edx
mov cl, byte [esp + 0x2f]
setb al
or cl, al
je 0x56e555
mov eax, dword [esp + 0x20]
test edx, edx
setg dl
test eax, eax
setne al
test dl, al
je 0x56e555
mov dword [esp + 0x10], 0x1b3
jmp 0x56e5df
mov dword [esp + 8], 0x1c8
mov dword [esp + 4], 0x75b87c
mov dword [esp], 0x75b9a4
call fcn.00533360
lea esi, [esi]
lea edi, [edi]