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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6f30
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x48]
push 0x40000
call fcn.00554cf0
test al, al
je 0x5665f6
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x56603d
cmp dword [edi + 0x28], 0x4000
jne 0x56603d
mov al, 1
jmp 0x566081
mov byte [ebp - 4], 1
test eax, eax
je 0x566053
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
push 0x1000
push 0x4000
mov byte [ebp - 4], 0
push 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x28], 0x4000
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [edi + 0x18], eax
setne al
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x5665f6
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x5660b0
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 0x40]
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x28]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x24], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov byte [edi + 0x3c], 0
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov byte [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx], 0x20
mov dword [ebx + 4], 0
mov dword [ebx + 0x30], 0
mov cl, byte [edi + 0x14]
movzx eax, cl
and eax, 2
mov byte [ebp + 0xf], cl
or eax, 0xc
shr eax, 1
test cl, 4
mov dword [ebp - 0x30], eax
mov al, cl
mov ecx, 0
setne cl
add ecx, 2
mov dword [ebp - 0x3c], ecx
test al, 4
je 0x56615e
push 0x100
lea eax, [edi + 0x78]
mov ecx, edi
push eax
call fcn.00565dc0
test al, al
je 0x5665dd
lea eax, [edi + 0x200]
mov ecx, edi
push 0x40
push eax
mov dword [ebp - 0x38], eax
call fcn.00565dc0
test al, al
je 0x5665dd
lea eax, [edi + 0x388]
mov ecx, edi
push 0x40
push eax
mov dword [ebp - 0x34], eax
call fcn.00565dc0
test al, al
je 0x5665dd
mov ecx, dword [esi + 4]
xorps xmm0, xmm0
mov eax, dword [esi]
mov esi, 1
movlpd qword [ebp - 0x48], xmm0
mov byte [ebp + 0x17], 0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jb 0x566561
ja 0x5661c7
test eax, eax
je 0x566561
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
movlpd qword [ebp - 0x28], xmm0
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
movlpd qword [ebp - 0x58], xmm0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x2c], edx
nop dword [eax]
sub eax, dword [ebp - 0x1c]
sbb ecx, edx
mov dword [ebp - 0x44], ecx
jne 0x566201
cmp eax, 0x40000
jb 0x56624e
cmp dword [ebp + 0x18], 0
je 0x56624e
mov edx, dword [ebx + 8]
xor ecx, ecx
sub edx, dword [ebx + 0x10]
mov eax, 0x20
sub eax, dword [ebx]
shr eax, 3
sub edx, eax
sbb ecx, ecx
add edx, dword [ebx + 0x28]
adc ecx, 0
add edx, dword [ebx + 0x18]
mov dword [ebp - 0x58], edx
lea edx, [ebp - 0x50]
adc ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x18]
push edx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], esi
test eax, eax
jne 0x5665fb
mov edx, dword [ebx]
cmp edx, 8
jb 0x5662a9
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
jb 0x566274
lea ecx, [ebx + 8]
call fcn.00554db0
test al, al
jne 0x566271
inc dword [ebx + 0x28]
or cl, 0xff
jmp 0x56627a
mov eax, dword [ebx + 8]
mov cl, byte [eax]
inc eax
mov dword [ebx + 8], eax
mov edi, dword [ebx]
movzx edx, cl
mov ecx, 0x20
sub ecx, edi
mov eax, edx
shl eax, cl
or dword [ebx + 0x30], eax
mov eax, dword [ebx + 4]
movzx ecx, byte [edx + 0x602840]
lea edx, [edi - 8]
shl eax, 8
or ecx, eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
cmp edx, 8
jae 0x566255
mov eax, dword [ebx + 0x30]
inc edx
mov ecx, eax
mov dword [ebx], edx
shr ecx, 1
mov dword [ebp + 8], ecx
mov dword [ebx + 0x30], ecx
test al, 1
je 0x566382
test byte [ebp + 0xf], 4
je 0x5662d7
mov ecx, dword [ebp - 0x10]
push ebx
add ecx, 0x78
call fcn.00565cd0
mov edx, eax
jmp 0x566352
cmp edx, 8
jb 0x566342
nop dword [eax]
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
jb 0x5662ff
lea ecx, [ebx + 8]
call fcn.00554db0
test al, al
jne 0x5662fc
inc dword [ebx + 0x28]
or cl, 0xff
jmp 0x566305
mov eax, dword [ebx + 8]
mov cl, byte [eax]
inc eax
mov dword [ebx + 8], eax
mov edx, dword [ebx]
movzx eax, cl
mov ecx, 0x20
sub ecx, edx
mov edi, eax
shl edi, cl
add edx, 0xfffffff8
mov ecx, edi
mov dword [ebp + 8], edi
or ecx, dword [ebx + 0x30]
mov dword [ebp + 8], ecx
mov dword [ebx + 0x30], ecx
movzx ecx, byte [eax + 0x602840]
mov eax, dword [ebx + 4]
shl eax, 8
or ecx, eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
cmp edx, 8
jae 0x5662e0
mov ecx, dword [ebp + 8]
lea eax, [edx + 8]
movzx edx, cl
mov dword [ebx], eax
mov eax, ecx
shr eax, 8
mov dword [ebx + 0x30], eax
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov byte [ecx + eax], dl
inc ecx
mov dword [esi + 0x1c], ecx
cmp ecx, dword [esi + 0x20]
jne 0x566377
lea ecx, [esi + 0x18]
call fcn.00557bd0
test eax, eax
jne 0x56660f
mov edi, dword [ebp - 0x50]
add edi, 1
jmp 0x566535
cmp edx, 8
jb 0x5663e9
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
jb 0x5663a6
lea ecx, [ebx + 8]
call fcn.00554db0
test al, al
jne 0x5663a3
inc dword [ebx + 0x28]
or cl, 0xff
jmp 0x5663ac
mov eax, dword [ebx + 8]
mov cl, byte [eax]
inc eax
mov dword [ebx + 8], eax
mov edx, dword [ebx]
movzx eax, cl
mov ecx, 0x20
sub ecx, edx
mov edi, eax
shl edi, cl
add edx, 0xfffffff8
mov ecx, edi
mov dword [ebp + 8], edi
or ecx, dword [ebx + 0x30]
mov dword [ebp + 8], ecx
mov dword [ebx + 0x30], ecx
movzx ecx, byte [eax + 0x602840]
mov eax, dword [ebx + 4]
shl eax, 8
or ecx, eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
cmp edx, 8
jae 0x566387
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x30]
push ebx
lea eax, [edx + esi]
mov dword [ebx], eax
mov eax, ecx
mov ecx, esi
shr eax, cl
mov ecx, dword [ebp - 0x34]
mov dword [ebx + 0x30], eax
call fcn.00565cd0
mov ecx, esi
mov edx, 1
shl edx, cl
dec edx
shl eax, cl
and edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, edx
push ebx
mov dword [ebp - 0x24], eax
call fcn.00565cd0
mov ecx, eax
cmp ecx, 0x3f
jne 0x56649a
mov eax, dword [ebx]
cmp eax, 8
jb 0x566484
nop
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
jb 0x56644f
lea ecx, [ebx + 8]
call fcn.00554db0
test al, al
jne 0x56644c
inc dword [ebx + 0x28]
or cl, 0xff
jmp 0x566455
mov eax, dword [ebx + 8]
mov cl, byte [eax]
inc eax
mov dword [ebx + 8], eax
mov esi, dword [ebx]
movzx edx, cl
mov ecx, 0x20
sub ecx, esi
mov eax, edx
shl eax, cl
or dword [ebx + 0x30], eax
mov eax, dword [ebx + 4]
movzx ecx, byte [edx + 0x602840]
shl eax, 8
or ecx, eax
lea eax, [esi - 8]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
cmp eax, 8
jae 0x566430
mov ecx, dword [ebx + 0x30]
add eax, 8
mov dword [ebx], eax
mov eax, ecx
shr eax, 8
movzx ecx, cl
mov dword [ebx + 0x30], eax
add ecx, 0x3f
add ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x50]
sub edx, edi
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x4c]
sbb eax, esi
mov dword [ebp - 0x44], 0
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x44], eax
jb 0x5664cb
ja 0x5664c2
cmp ecx, edx
jbe 0x5664cb
mov byte [ebp + 0x17], 1
mov ecx, edx
mov dword [ebp + 8], edx
xor eax, eax
cmp eax, esi
jb 0x56651f
ja 0x5664da
mov eax, dword [ebp - 0x24]
cmp eax, edi
jb 0x566522
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x1c]
mov eax, dword [edx + 0x18]
mov byte [ecx + eax], 0
inc ecx
mov dword [edx + 0x1c], ecx
cmp ecx, dword [edx + 0x20]
jne 0x566500
lea ecx, [edx + 0x18]
call fcn.00557bd0
test eax, eax
jne 0x566625
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
add edi, 1
mov ecx, dword [ebp + 8]
adc esi, 0
mov dword [ebp - 0x50], edi
sub ecx, 1
mov dword [ebp - 0x4c], esi
mov dword [ebp + 8], ecx
je 0x566541
jmp 0x5664cb
mov eax, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
lea ecx, [ecx + 0x18]
call fcn.0048e930
mov edi, dword [ebp - 0x50]
add edi, dword [ebp + 8]
mov esi, dword [ebp - 0x4c]
adc esi, 0
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], esi
cmp esi, dword [ebp - 0x18]
ja 0x566559
jb 0x56654d
cmp edi, dword [ebp - 0x14]
jae 0x566559
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov ecx, esi
jmp 0x5661f0
mov edi, dword [ebp - 0x10]
mov esi, 1
lea ecx, [edi + 0x18]
call fcn.00557bd0
mov ecx, eax
test ecx, ecx
jne 0x5665c7
cmp byte [edi + 0x15], al
je 0x5665b2
cmp byte [ebp + 0x17], al
cmovne ecx, esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x5665b2
mov eax, dword [edi + 0x48]
xor edx, edx
sub eax, dword [edi + 0x50]
mov ebx, 0x20
sub ebx, dword [edi + 0x40]
shr ebx, 3
sub eax, ebx
sbb edx, edx
add eax, dword [edi + 0x68]
adc edx, 0
add eax, dword [edi + 0x58]
adc edx, dword [edi + 0x5c]
cmp dword [esi], eax
jne 0x5665ad
cmp dword [esi + 4], edx
je 0x5665b2
mov ecx, 1
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x50], eax
jne 0x5665c2
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x4c], eax
je 0x5665c7
mov ecx, 1
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x8007000e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push eax
lea ecx, [ebp + 0x18]
call fcn.004c9230
push 0x5f7c74
mov eax, ecx
push eax
call fcn.0058acc1
push eax
lea ecx, [ebp + 0x14]
call fcn.004c9230
push 0x5f7c74
mov eax, ecx
push eax
call fcn.0058acc1
int3