Function at 0x566560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5db551
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x90], ecx
cmp dword [ebp + 0x18], 0
mov dword [ebp - 4], 0
ja 0x5665c5
push str.No_license_reference_passed_in
push 2
call fcn.00561a10
add esp, 8
mov esi, 7
jmp 0x566944
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp byte [eax + 4], 0
mov byte [ebp - 4], 2
je 0x56660d
push str.reading_license_files_from_userBasedLocation
push 2
call fcn.00561a10
lea eax, [ebp - 0x58]
push eax
call fcn.00565cc0
add esp, 0xc
jmp 0x566619
lea eax, [ebp - 0x58]
push eax
call fcn.00565b60
add esp, 4
push 0x60a09c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00482b80
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00487550
add esp, 0x18
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x566662
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00459720
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 0x74], 0xf
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.0049b870
add esp, 4
test eax, eax
lea eax, [ebp - 0x40]
jne 0x56671a
push eax
lea eax, [ebp - 0x70]
push str.Couldnt_find_license_reference
push eax
call fcn.00468bd0
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x5666e1
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x5666c6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00459720
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0045fb00
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x5666fa
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00459720
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
call fcn.00561a10
add esp, 8
mov esi, 1
jmp 0x5668cf
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0049b840
add esp, 4
test eax, eax
lea eax, [ebp - 0x40]
jne 0x566775
push eax
lea eax, [ebp - 0x70]
push str.Unreadable_license_reference
push eax
call fcn.00468bd0
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.004674d0
lea ecx, [ebp - 0x70]
call fcn.0045e7f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
call fcn.00561a10
add esp, 8
mov esi, 4
jmp 0x5668cf
cmp dword [ebp - 0x2c], 0x10
push 0x60910c
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0049b790
mov edi, eax
add esp, 8
test edi, edi
jne 0x5667d5
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push str.Couldnt_open_license_reference
push eax
call fcn.00468bd0
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.004674d0
lea ecx, [ebp - 0x70]
call fcn.0045e7f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
call fcn.00561a10
add esp, 8
lea esi, [edi + 0xc]
jmp 0x5668cf
push 2
push 0
push edi
call fcn.00589ca8
add esp, 0xc
test eax, eax
je 0x5667f0
mov esi, 9
jmp 0x5668cf
push edi
call fcn.005897a5
mov ebx, eax
add esp, 4
cmp ebx, 1
jge 0x56680a
mov esi, 9
jmp 0x5668cf
push ebx
call fcn.00594461
mov esi, eax
add esp, 4
mov dword [ebp - 0x8c], esi
test esi, esi
jne 0x566838
push str.Ran_out_of_memory_trying_to_read_a_license_file
push 1
call fcn.00561a10
add esp, 8
mov esi, 0x10
jmp 0x5668cf
push 0
push 0
push edi
call fcn.00589ca8
push edi
push ebx
push 1
push esi
call fcn.005915f1
push edi
mov esi, eax
call fcn.00589953
add esp, 0x20
cmp esi, 1
jae 0x5668ab
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push str.Couldnt_read_data_from_license_reference
push eax
call fcn.00468bd0
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.004674d0
lea ecx, [ebp - 0x70]
call fcn.0045e7f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
call fcn.00561a10
mov edi, dword [ebp - 0x8c]
push edi
call fcn.00593b50
add esp, 0xc
mov esi, 2
jmp 0x5668cf
push dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
push ebx
push edi
call fcn.00565f50
push edi
mov esi, eax
call fcn.00593b50
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x5668e4
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00459720
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x56690b
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00459720
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x566932
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00459720
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x566959
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00459720
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 0x1c