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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
push edi
push dword [esp + 0x74]
mov esi, dword [ebp + 0x198]
push dword [ebp + 0x64]
push dword [esp + 0x6c]
call fcn.00565644
mov ecx, dword [ebp + 0x60]
mov edx, eax
mov eax, dword [ebp + 0x1a0]
add esp, 0xc
mov ebx, dword [ebp + 8]
dec ecx
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
mov dword [esp + 0x24], eax
xor eax, eax
inc eax
mov dword [esp + 0x44], ebx
shl eax, cl
mov ecx, dword [ebp + 0xc]
dec eax
add ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
mov edi, dword [esi + edx*4]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x64]
sub ebx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
add ecx, eax
mov eax, ebx
mov dword [esp + 0x48], ecx
sub eax, dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp + 0x10]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, ebx
and eax, dword [esp + 0x14]
and dword [esp + 0x1c], 0
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + edx*4], ebp
lea eax, [ecx + eax*8]
lea ebx, [eax + 4]
mov dword [esp + 0x10], eax
lea ecx, [ebp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x54], ecx
mov ebx, ecx
jmp 0x566112
dec edx
mov dword [esp + 0x70], edx
cmp edi, dword [esp + 0x40]
jbe 0x566132
mov edx, dword [esp + 0x24]
mov eax, edi
and eax, dword [esp + 0x14]
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x30], edx
mov esi, edx
mov dword [esp + 0x3c], eax
cmovb esi, dword [esp + 0x30]
cmp dword [esp + 0x78], 0
je 0x56603d
lea eax, [esi + edi]
cmp eax, dword [esp + 0x28]
jae 0x56603d
push dword [esp + 0x48]
mov ebp, dword [esp + 0x48]
push dword [esp + 0x50]
add ebp, edi
push dword [esp + 0x70]
lea eax, [esi + ebp]
push eax
lea eax, [esi + ecx]
push eax
call fcn.0056476c
mov ecx, dword [esp + 0x78]
add esi, eax
add esp, 0x14
lea eax, [esi + edi]
cmp eax, dword [esp + 0x28]
jb 0x56606a
mov ebp, dword [esp + 0x2c]
add ebp, edi
jmp 0x56606a
mov ebp, dword [esp + 0x2c]
add ebp, edi
mov al, byte [esi + ebp]
cmp al, byte [esi + ecx]
jne 0x56606a
push dword [esp + 0x68]
lea eax, [esi + 1]
add eax, ebp
push eax
lea eax, [esi + 1]
add eax, ecx
push eax
call fcn.005646c4
mov ecx, dword [esp + 0x70]
inc esi
add esp, 0xc
add esi, eax
cmp esi, dword [esp + 0x1c]
jbe 0x5660cd
mov eax, ebx
lea ecx, [esi + edi]
sub eax, edi
cmp esi, eax
mov eax, dword [esp + 0x20]
cmovbe ecx, ebx
and dword [esp + 0x50], 0
and dword [esp + 0x58], 0
sub eax, edi
mov dword [esp + 0x50], eax
mov ebx, ecx
inc eax
bsr edx, eax
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
inc eax
bsr ecx, eax
mov eax, esi
sub eax, dword [esp + 0x1c]
sub edx, ecx
shl eax, 2
cmp eax, edx
jle 0x5660c0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
add eax, 2
mov dword [esp + 0x1c], esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x64]
lea eax, [esi + ecx]
cmp eax, dword [esp + 0x68]
je 0x566132
mov al, byte [esi + ebp]
cmp al, byte [esi + ecx]
jae 0x5660f4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], esi
mov dword [eax], edi
cmp edi, dword [esp + 0x38]
jbe 0x566124
mov eax, dword [esp + 0x3c]
add eax, 4
mov dword [esp + 0x10], eax
mov edi, dword [eax]
jmp 0x566116
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], esi
mov dword [ecx], edi
cmp edi, dword [esp + 0x38]
jbe 0x56612a
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x565fc5
jmp 0x566136
lea eax, [esp + 0x64]
jmp 0x566136
lea eax, [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
inc edx
pop edi
and dword [ecx], 0
lea ecx, [ebx - 8]
and dword [eax], 0
cmp ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
cmova edx, ecx
mov ecx, dword [esp + 0x5c]
pop esi
pop ebp
pop ebx
mov dword [ecx + 0x14], edx
add esp, 0x4c
ret