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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x671472
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
push ebx
push esi
push edi
mov eax, dword [0x6d7160]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
jne 0x565dac
and dword [ebp + 0x10], 0xfffffffe
mov edx, dword [ebp + 0x10]
xor esi, esi
cmp edx, esi
jle 0x566140
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x2e0], esi
mov eax, dword [ebx + 0x10]
cmp eax, esi
je 0x565e04
mov ecx, dword [ebx + 4]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov eax, edi
mov ecx, edx
call fcn.00565ce0
add esp, 0xc
test al, al
je 0x566140
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
mov dword [ebx + 0x10], esi
mov ecx, ebx
mov eax, dword [ebx + 8]
cmp dword [eax + 0x10], 0xffffffff
je 0x566135
cmp byte [edi + 0x2f], 0
jne 0x565e20
cmp dword [edi + 0x18], esi
je 0x566135
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebx + 4]
lea esi, [esp + 0x44]
call fcn.00565bd0
test al, al
je 0x565efa
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0xb8]
push edx
mov edx, dword [ebp + 0x18]
push edx
push eax
push ecx
call fcn.0056b080
add esp, 0x10
mov dword [esp + 0xb4], eax
mov ecx, eax
mov byte [esp + 0x2e0], 1
mov esi, dword [ebx + 4]
lea eax, [esp + 0x3c]
call fcn.00565c70
mov dword [esp + 0x1c], eax
xor eax, eax
cmp dword [ebp + 0xc], 2
sete al
mov dword [esp + 0x14], eax
mov edi, dword [ebp + 0x10]
cmp edi, 0x20
mov ebx, edi
jbe 0x565e91
mov ebx, 0x20
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x1dc]
push edx
call fcn.0055a150
mov eax, dword [esp + 0xb4]
push eax
push ebx
lea ecx, [esp + 0x1dc]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 0x14]
mov ecx, ebx
sub ecx, eax
add esp, 0x10
lea ecx, [edx + ecx*8]
sub edi, ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], edi
je 0x565edd
add edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
jne 0x565e82
lea eax, [esp + 0xb4]
mov byte [esp + 0x2e0], 0
call fcn.005653a0
jmp 0x56610e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x565ffd
jle 0x56610e
cmp eax, 2
jg 0x56610e
sub dword [ebp + 0x10], 1
lea ecx, [esp + 0x4c]
call fcn.005519d0
mov eax, dword [ebp + 0x18]
lea ebx, [esp + 0x78]
mov byte [esp + 0x2e0], 4
call fcn.00556fe0
mov eax, 1
mov ecx, ebx
mov byte [esp + 0x2e0], 5
call fcn.00557280
mov eax, dword [ebp + 0xc]
sub eax, 1
neg eax
sbb eax, eax
add eax, 2
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
jbe 0x565fd6
mov esi, dword [ebp + 0x14]
lea edx, [eax*8]
add esi, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jmp 0x565f84
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov ecx, dword [esi - 4]
push eax
push ecx
lea edi, [esp + 0x54]
call fcn.00551cf0
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
call fcn.00551da0
mov ebx, dword [ebp + 8]
push 1
push 0
lea esi, [esp + 0x80]
mov edx, edi
call fcn.005664b0
mov eax, edi
call fcn.00551b80
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x14], ecx
cmp eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
jb 0x565f80
lea ecx, [esp + 0x78]
mov byte [esp + 0x2e0], 4
call fcn.00557070
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2e0], 0
call fcn.005519f0
jmp 0x56610e
mov esi, dword [ebp + 0x18]
mov ecx, esi
lea edx, [esp + 0x1c]
call fcn.00565470
mov byte [esp + 0x2e0], 2
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
mov edx, edi
sar edx, 1
and eax, 0x1800
cmp eax, 0x800
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edx
jne 0x5660ad
lea ecx, [esp + 0x78]
call fcn.005519d0
lea ecx, [esp + 0x78]
push ecx
mov eax, edx
xor ecx, ecx
xor edx, edx
mov byte [esp + 0x2e4], 3
call fcn.00552400
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
jbe 0x56609a
add eax, 0xffffffff
mov dword [esp + 0x10], eax
jmp 0x56606a
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + edi*8 + 4]
mov edx, dword [eax + edi*8]
lea eax, [esp + 0x4c]
call fcn.00558c20
cmp dword [esp + 0x10], edi
sete dl
push edx
push eax
lea edx, [esp + 0x80]
call fcn.005664b0
add edi, 1
cmp edi, dword [ebp + 0x10]
jb 0x566064
lea ecx, [esp + 0x78]
mov byte [esp + 0x2e0], 2
call fcn.005519f0
jmp 0x566101
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x566101
jmp 0x5660c8
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + esi*8]
mov ecx, dword [ecx + esi*8 + 4]
sub ecx, edx
mov dword [esp + 0x30], ecx
add ecx, edi
sub eax, edx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
add eax, edi
push ecx
mov ecx, dword [ebp + 0x18]
mov edi, ebx
mov dword [esp + 0x38], eax
call fcn.00566160
add esi, 1
cmp esi, dword [ebp + 0x10]
jb 0x5660c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
call fcn.00557280
mov eax, dword [esp + 0x24]
test eax, eax
je 0x566140
mov edx, dword [esp + 0x28]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp ecx, esi
je 0x566140
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x10], eax
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14