Function at 0x406030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov esi, ecx
call fcn.0040ebe0
add esp, 0xc
xor edi, edi
cmp dword [esi], ebx
jle 0x406173
lea ebx, [esi + 0x810]
nop
xor eax, eax
push 0x4306a8
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.004136fc
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x40609c
mov eax, dword [eax]
jmp 0x40609e
xor eax, eax
push eax
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x210]
push str..lic
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str.CSecRMMWMILicense::GetComputerLicenseFromExternalFile:_Checking_file__s_n
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x210]
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x214], ecx
cmp ecx, 0xffffffff
jne 0x40611c
inc edi
add ebx, 4
cmp edi, dword [esi]
jl 0x406070
xor ebx, ebx
jmp 0x406173
push 0
lea eax, [esi + 0x80c]
push eax
push 0x800
lea eax, [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
mov ebx, 1
push eax
push str.CSecRMMWMILicense::GetComputerLicenseFromExternalFile:_Found_valid_computer_license_file:__s_n
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x210]
lea ecx, [esi + 0x844]
push eax
call fcn.00409270
mov ecx, esi
call fcn.00408fb0
cmp ebx, 1
jne 0x406195
mov dword [esi + 0x840], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc4a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jne 0x4061b0
mov ecx, esi
call fcn.004087a0
mov eax, dword [esi + 4]
test eax, eax
je 0x4062d1
xor edi, edi
test eax, eax
jle 0x4062d1
lea ebx, [esi + 0x830]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040ebe0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x4306a8
push 0x100
push eax
call fcn.004136fc
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x4061f9
mov eax, dword [eax]
jmp 0x4061fb
xor eax, eax
push eax
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x210]
push str..lic
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str.CSecRMMWMILicense::GetDomainLicenseFromExternalFile:_Checking_file__s_n
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x210]
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x214], ecx
cmp ecx, 0xffffffff
jne 0x40627a
inc edi
add ebx, 4
cmp edi, dword [esi + 4]
jl 0x4061c0
xor ebx, ebx
jmp 0x4062d1
push 0
lea eax, [esi + 0x80c]
push eax
push 0x800
lea eax, [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
mov ebx, 1
push eax
push str.CSecRMMWMILicense::GetDomainLicenseFromExternalFile:_Found_valid_domain_license_file:__s_n
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x210]
lea ecx, [esi + 0x844]
push eax
call fcn.00409270
mov ecx, esi
call fcn.00408fb0
cmp ebx, 1
jne 0x4062ef
mov dword [esi + 0x840], ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc4a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, eax
jne 0x40630a
mov ecx, esi
call fcn.00408850
mov eax, dword [esi + 8]
test eax, eax
je 0x406431
xor edi, edi
test eax, eax
jle 0x406431
lea ebx, [esi + 0x83c]
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040ebe0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x4306a8
push 0x100
push eax
call fcn.004136fc
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x406359
mov eax, dword [eax]
jmp 0x40635b
xor eax, eax
push eax
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x210]
push str..lic
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str.CSecRMMWMILicense::GetForestLicenseFromExternalFile:_Checking_file__s_n
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x210]
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x214], ecx
cmp ecx, 0xffffffff
jne 0x4063da
inc edi
add ebx, 4
cmp edi, dword [esi + 8]
jl 0x406320
xor ebx, ebx
jmp 0x406431
push 0
lea eax, [esi + 0x80c]
push eax
push 0x800
lea eax, [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
mov ebx, 1
push eax
push str.CSecRMMWMILicense::GetForestLicenseFromExternalFile:_Found_valid_forest_license_file:__s_n
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x210]
lea ecx, [esi + 0x844]
push eax
call fcn.00409270
mov ecx, esi
call fcn.00408fb0
cmp ebx, 1
jne 0x406453
mov dword [esi + 0x840], 2
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc4a
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jne 0x40646e
mov ecx, esi
call fcn.004087a0
mov eax, dword [esi + 4]
test eax, eax
je 0x40657b
xor edi, edi
test eax, eax
jle 0x40657b
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040ebe0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x4306a8
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x210]
push str.FREEWARE
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x210]
push str..lic
push 0x100
push eax
call fcn.004136fc
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str.CSecRMMWMILicense::GetFreewareLicenseFromExternalFile:_Checking_file__s_n
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x210]
push 0
push 0x80
push 3
push 0
push 1
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406529
inc edi
cmp edi, dword [esi + 4]
jl 0x406480
xor ebx, ebx
jmp 0x40657b
push 0
lea eax, [esi + 0x80c]
push eax
push 0x800
lea eax, [esi + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
mov ebx, 1
push eax
push str.CSecRMMWMILicense::GetFreewareLicenseFromExternalFile:_Found_valid_freeware_license_file:__s_n
call fcn.00404100
add esp, 8
lea eax, [ebp - 0x210]
lea ecx, [esi + 0x844]
push eax
call fcn.00409270
mov ecx, esi
call fcn.00408fb0
cmp ebx, 1
jne 0x40659d
mov dword [esi + 0x840], 3
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc4a
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004088d0
mov edi, eax
cmp edi, 1
jne 0x4065c6
mov dword [esi + 0x840], 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc4a
mov esp, ebp
pop ebp
ret
push str.CSecRMMWMILicense::GetLicense:_No_license._n
call fcn.00404100
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040cc4a
mov esp, ebp
pop ebp
ret