Function at 0x41054b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a8
push ebx
push esi
push edi
mov dword [ebp - 0x230], 0
push str._LicID_:
push 0x80
lea eax, [ebp - 0x2b0]
push eax
call fcn.00452660
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
push eax
push str._Pid_:__d___LicID
push 0x80
lea eax, [ebp - 0x88]
push eax
call fcn.00452660
add esp, 0x10
push str._serial_number_:_
push 0x80
lea eax, [ebp - 0x108]
push eax
call fcn.00452660
add esp, 0xc
push str._user_lic_sub_model_:_
push 0x80
lea eax, [ebp - 0x228]
push eax
call fcn.00452660
add esp, 0xc
cmp dword [0x45e03c], 0
je 0x4105f3
lea eax, [ebp - 0x88]
push eax
push str._r_nBase_SDS_Scan___s_
call fcn.00452380
add esp, 8
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x1a4], eax
lea edi, [ebp - 0x88]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x22c], eax
lea edi, [ebp - 0x108]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 8], eax
lea edi, [ebp - 0x228]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x114], eax
cmp dword [0x462378], 0
jne 0x410697
cmp dword [0x45e03c], 0
je 0x410689
push str._r_nG_BLCK_SDS_NULL
call fcn.00452380
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x410b84
push 0
push 0x80
push 3
push 0
push 3
push bind
push 0x508a20
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
je 0x410adb
mov dword [ebp - 0x1a8], 0
push 0
lea eax, [ebp - 0x1a8]
push eax
push 0x2f4d60
mov eax, dword [0x462378]
push eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1a8], 0xa
jle 0x410ab5
sub dword [ebp - 0x1a8], 0xa
mov dword [ebp - 0x19c], 0
mov eax, dword [ebp - 0x1a8]
cmp dword [ebp - 0x19c], eax
jge 0x410ab0
cmp dword [ebp - 0x230], 0
jne 0x41078c
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x41078c
mov dword [ebp - 0x230], 1
cmp dword [0x45e03c], 0
je 0x41078c
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x2b0]
push eax
push str._r_nSDS__s_found___s_
call fcn.00452380
add esp, 0xc
mov eax, dword [ebp - 0x19c]
mov ecx, dword [0x462378]
mov edx, dword [ebp - 0x1a0]
cmp dword [eax + ecx], edx
jne 0x410aa5
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x19c]
add ecx, dword [0x462378]
lea edi, [ebp - 0x198]
mov esi, ecx
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x22c]
mov byte [ebp + eax - 0x198], 0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00452540
add esp, 8
test eax, eax
jne 0x410aa5
cmp dword [0x45e03c], 0
je 0x410852
lea eax, [ebp - 0x88]
push eax
push str._r_nSDS_Scan___s__Found
call fcn.00452380
add esp, 8
mov eax, dword [ebp - 0x19c]
add eax, dword [0x462378]
lea edi, [ebp - 0x8a8]
mov esi, eax
mov ecx, 0x17a
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x2c0], 0
lea eax, [ebp - 0x8a8]
push eax
push str._r_nSDS_Patch:_r_n__s__r_n
call fcn.00452380
add esp, 8
mov eax, dword [ebp - 0x22c]
add dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
add eax, 0x200
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2f4d60
jle 0x410880
mov dword [ebp - 4], 0x2f4d5e
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x19c]
cmp dword [ebp - 4], eax
jle 0x4109bb
mov eax, dword [ebp - 0x19c]
mov ecx, dword [0x462378]
mov edx, dword [ebp - 0x1a4]
cmp dword [eax + ecx], edx
jne 0x4109b0
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x19c]
add ecx, dword [0x462378]
lea edi, [ebp - 0x198]
mov esi, ecx
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x114]
mov byte [ebp + eax - 0x198], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00452540
add esp, 8
test eax, eax
jne 0x4109b0
mov eax, dword [ebp - 0x114]
add dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
add eax, dword [0x462378]
mov edi, dword [ebp + 8]
mov esi, eax
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov byte [eax + 0x15], 0
mov dword [ebp - 0x19c], 0
cmp dword [ebp - 0x19c], 0x15
jge 0x41098d
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp + 8]
movsx eax, byte [eax + ecx]
cmp eax, 0x22
jne 0x410982
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0
mov dword [ebp - 0x19c], 0x1869f
inc dword [ebp - 0x19c]
jmp 0x410948
cmp dword [0x45e03c], 0
je 0x4109ab
mov eax, dword [ebp + 8]
push eax
push str._r_n914SDS_Scan_SuBUFnd__s_
call fcn.00452380
add esp, 8
jmp 0x410b84
inc dword [ebp - 0x19c]
jmp 0x410895
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x19c]
cmp dword [ebp - 4], eax
jle 0x410aa5
mov eax, dword [ebp - 0x19c]
mov ecx, dword [0x462378]
mov edx, dword [ebp - 0x10c]
cmp dword [eax + ecx], edx
jne 0x410a9a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x19c]
add ecx, dword [0x462378]
lea edi, [ebp - 0x198]
mov esi, ecx
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x198], 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00452540
add esp, 8
test eax, eax
jne 0x410a9a
mov eax, dword [ebp - 8]
add dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
add eax, dword [0x462378]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
mov byte [eax + 0xc], 0
cmp dword [0x45e03c], 0
je 0x410a95
mov eax, dword [ebp + 8]
push eax
push str._r_nSDS_Scan_SZ__s_
call fcn.00452380
add esp, 8
jmp 0x410b84
inc dword [ebp - 0x19c]
jmp 0x4109d0
inc dword [ebp - 0x19c]
jmp 0x41071d
jmp 0x410ad6
cmp dword [0x45e03c], 0
je 0x410ad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_nG_SDS_IHAN_NULL._d
call fcn.00452380
add esp, 8
jmp 0x410afc
cmp dword [0x45e03c], 0
je 0x410afc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_nG_SDS_FFOX___d_
call fcn.00452380
add esp, 8
call fcn.0041047e
test eax, eax
je 0x410b18
mov dword [ebp - 0x230], 0
jmp 0x410b2f
call fcn.00410395
test eax, eax
je 0x410b2f
mov dword [ebp - 0x230], 1
cmp dword [ebp - 0x230], 0
jne 0x410b64
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
cmp dword [0x45e03c], 0
je 0x410b5f
push str._r_nSDS_IsStandalone__true_
call fcn.00452380
add esp, 4
jmp 0x410b84
cmp dword [0x45e03c], 0
je 0x410b84
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
push str._r_nSDS_IsStandalone___d
call fcn.00452380
add esp, 8
pop edi
pop esi
pop ebx
leave
ret