Function at 0x18009310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1802abb9
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x1804e020]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x1804e020]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
xor edi, edi
xor ebx, ebx
call fcn.1800f530
mov dword [esp + 0x470], ebx
mov ecx, dword [esi + 0x4c]
mov esi, dword [sym.imp.MSVCR90.dll_fread]
push ecx
push 0xc
lea edx, [esp + 0x20]
push 1
push edx
call esi
add esp, 0x10
test eax, eax
jbe 0x18009700
jmp 0x18009390
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x54]
push 1
push eax
call esi
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
shr ecx, 1
xor edx, edx
add esp, 0x10
mov word [esp + ecx*2 + 0x4c], dx
cmp eax, 0x20000001
ja 0x1800964f
je 0x1800960d
test eax, eax
je 0x1800941c
cmp eax, 0x10000000
jne 0x18009757
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x25c]
push 1
push eax
call esi
mov ecx, dword [esp + 0x2c]
shr ecx, 1
xor edx, edx
add esp, 0x10
lea eax, [esp + 0x254]
mov word [esp + ecx*2 + 0x254], dx
push eax
lea ecx, [edi + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const__]
jmp 0x180096e2
push 0x78
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
xor edi, edi
mov byte [esp + 0x470], 1
cmp eax, edi
je 0x18009446
push eax
call fcn.18007de0
mov esi, eax
mov dword [esp + 0x24], esi
jmp 0x1800944c
mov dword [esp + 0x24], edi
mov esi, edi
mov byte [esp + 0x470], 0
mov dword [esp + 0x14], esi
cmp esi, edi
je 0x18009733
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
mov dword [esi + 0x1c], ecx
push edx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const__]
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x1800955a
mov ecx, str.HKEY_CLASSES_ROOT
lea eax, [esp + 0x4c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x180094b6
cmp dx, di
je 0x180094b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x180094b6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x18009490
xor eax, eax
jmp 0x180094bb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x180094cd
mov eax, dword [esp + 0x10]
lea ecx, [eax + 4]
mov dword [eax], ecx
jmp 0x1800959b
mov ecx, str.HKEY_CURRENT_USER
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x180094fc
cmp dx, di
je 0x180094f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x180094fc
add eax, 4
add ecx, 4
cmp dx, di
jne 0x180094d6
xor eax, eax
jmp 0x18009501
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x18009513
mov eax, dword [esp + 0x10]
lea edx, [eax + 0x1c]
mov dword [eax], edx
jmp 0x1800959b
mov ecx, str.HKEY_LOCAL_MACHINE
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x18009546
cmp dx, di
je 0x18009542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x18009546
add eax, 4
add ecx, 4
cmp dx, di
jne 0x18009520
xor eax, eax
jmp 0x1800954b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x1800959b
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x34]
mov dword [eax], ecx
jmp 0x1800959b
cmp ebx, edi
je 0x1800959b
mov ecx, dword [ebx + 0x1c]
cmp ecx, eax
jne 0x18009573
mov edx, dword [ebx + 0x68]
mov dword [esi + 0x68], edx
mov dword [ebx + 0x70], esi
mov dword [esi + 0x74], ebx
jmp 0x1800959b
jae 0x1800957d
mov dword [esi + 0x68], ebx
mov dword [ebx + 0x6c], esi
jmp 0x1800959b
cmp ecx, eax
jb 0x18009598
cmp dword [ebx + 0x1c], eax
jne 0x18009590
mov dword [ebx + 0x70], esi
mov dword [esi + 0x74], ebx
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebx + 0x68]
cmp dword [ebx + 0x1c], eax
jae 0x18009584
mov dword [esi + 0x68], ebx
mov eax, dword [esp + 0x10]
mov ebx, esi
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, edi
jne 0x180095ae
xor ecx, ecx
jmp 0x180095b6
mov ecx, dword [esi + 0x14]
sub ecx, eax
sar ecx, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x180095df
mov eax, dword [esp + 0x24]
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
mov esi, dword [sym.imp.MSVCR90.dll_fread]
mov edi, dword [esp + 0x14]
jmp 0x180096e2
cmp eax, edi
jbe 0x180095e9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
mov eax, esi
call fcn.1800f770
mov esi, dword [sym.imp.MSVCR90.dll_fread]
mov edi, dword [esp + 0x14]
jmp 0x180096e2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x25c]
push 1
push eax
call esi
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, eax
shr ecx, 1
push eax
xor edx, edx
push 1
lea eax, [esp + 0x54]
mov word [esp + ecx*2 + 0x25c], dx
push eax
lea ecx, [esp + 0x260]
jmp 0x180096db
sub eax, 0x20000003
je 0x18009684
sub eax, 1
jne 0x18009757
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x4c]
push edx
push 4
lea eax, [esp + 0x48]
push 1
push eax
call esi
add esp, 0x10
push 4
lea ecx, [esp + 0x50]
push 4
push ecx
lea ecx, [esp + 0x4c]
jmp 0x180096db
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
call fcn.18009f40
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
jne 0x180096a2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x4c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
push edx
push eax
push 1
push ecx
call esi
mov edx, dword [esp + 0x48]
add esp, 0x10
sub edx, dword [esp + 0x34]
jne 0x180096cb
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
push 3
push ecx
mov ecx, dword [esp + 0x40]
mov edx, edi
call fcn.18008010
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x4c]
push eax
push 0xc
lea ecx, [esp + 0x20]
push 1
push ecx
call esi
add esp, 0x10
test eax, eax
ja 0x18009390
mov eax, dword [esp + 0x34]
test eax, eax
je 0x18009711
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x28]
xor eax, eax
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
jmp 0x18009785
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x18009744
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
push eax
jmp 0x1800977b
mov eax, dword [esp + 0x34]
test eax, eax
je 0x18009768
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.1802929c
mov esp, ebp
pop ebp
ret