Function at 0x538f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b409b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x629688]
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 dword [ebp - 0x94], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x90], eax
cmp dword [ebp + 0x18], 0
mov dword [ebp - 4], 0
ja 0x538ff3
push str.No_license_reference_passed_in
push 2
call fcn.0052cc40
add esp, 8
mov esi, 7
jmp 0x53933b
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 2
call fcn.00538820
push 0x5e0864
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041c780
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 3
call fcn.0041c870
add esp, 0x1c
cmp dword [ebp - 0x74], 0x10
mov byte [ebp - 4], 5
jb 0x539066
push dword [ebp - 0x88]
call fcn.0058603b
add esp, 4
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.004018d0
add esp, 4
test eax, eax
jne 0x53910e
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x58]
push str.Couldnt_find_license_reference
push eax
call fcn.00415770
mov esi, eax
lea eax, [ebp - 0x28]
add esp, 0xc
cmp eax, esi
je 0x5390dd
cmp dword [ebp - 0x14], 0x10
jb 0x5390c2
push dword [ebp - 0x28]
call fcn.0058603b
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004148c0
cmp dword [ebp - 0x44], 0x10
jb 0x5390ee
push dword [ebp - 0x58]
call fcn.0058603b
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
call fcn.0052cc40
add esp, 8
mov esi, 1
jmp 0x5392d2
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004018a0
add esp, 4
test eax, eax
jne 0x539175
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x58]
push str.Unreadable_license_reference
push eax
call fcn.00415770
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.0041b620
cmp dword [ebp - 0x44], 0x10
jb 0x539155
push dword [ebp - 0x58]
call fcn.0058603b
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
call fcn.0052cc40
add esp, 8
mov esi, 4
jmp 0x5392d2
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0x5e0860
push eax
call fcn.004017f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x5391d8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x58]
push str.Couldnt_open_license_reference
push eax
call fcn.00415770
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.0041b620
lea ecx, [ebp - 0x58]
call fcn.00407f30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
call fcn.0052cc40
add esp, 8
lea esi, [edi + 0xc]
jmp 0x5392d2
push 2
push 0
push edi
call fcn.0058b95c
add esp, 0xc
test eax, eax
je 0x5391f3
mov esi, 9
jmp 0x5392d2
push edi
call fcn.0058cb76
mov ebx, eax
add esp, 4
cmp ebx, 1
jge 0x53920d
mov esi, 9
jmp 0x5392d2
push ebx
call fcn.00587a78
mov esi, eax
add esp, 4
mov dword [ebp - 0x8c], esi
test esi, esi
jne 0x53923b
push str.Ran_out_of_memory_trying_to_read_a_license_file
push 1
call fcn.0052cc40
add esp, 8
mov esi, 0x10
jmp 0x5392d2
push 0
push 0
push edi
call fcn.0058b95c
push edi
push ebx
push 1
push esi
call fcn.00589b23
push edi
mov esi, eax
call fcn.005890ae
add esp, 0x20
cmp esi, 1
jae 0x5392ae
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x58]
push str.Couldnt_read_data_from_license_reference
push eax
call fcn.00415770
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.0041b620
lea ecx, [ebp - 0x58]
call fcn.00407f30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
call fcn.0052cc40
mov edi, dword [ebp - 0x8c]
push edi
call fcn.005864b7
add esp, 0xc
mov esi, 2
jmp 0x5392d2
push dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
push ebx
push edi
call fcn.00538b20
push edi
mov esi, eax
call fcn.005864b7
add esp, 4
cmp dword [ebp - 0x2c], 0x10
jb 0x5392e3
push dword [ebp - 0x40]
call fcn.0058603b
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x539306
push dword [ebp - 0x70]
call fcn.0058603b
add esp, 4
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jb 0x539329
push dword [ebp - 0x28]
call fcn.0058603b
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x53934c
push dword [ebp + 8]
call fcn.0058603b
add esp, 4
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.00586d1b
mov esp, ebp
pop ebp
ret 0x1c