Function at 0x42b2a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e28c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1370
call fcn.0044a4d0
mov eax, dword [0x4622c0]
xor eax, ebp
mov dword [ebp - 0xac], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1304], ecx
mov ecx, dword [ebp - 0x1304]
add ecx, 0x2a4
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
test eax, eax
je 0x42b30f
mov ecx, dword [ebp - 0x1304]
add ecx, 0x19c
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
test eax, eax
jne 0x42b3e9
mov ecx, dword [ebp - 0x1304]
add ecx, 0x19c
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
push eax
mov ecx, dword [ebp - 0x1304]
add ecx, 0x2a4
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
push eax
lea eax, [ebp - 0x113c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1120], esp
push 0x21
push 0x455940
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0x1308], eax
lea ecx, [ebp - 0x111c]
call fcn.00402c20
mov dword [ebp - 0x130c], eax
mov ecx, dword [ebp - 0x130c]
mov dword [ebp - 0x1310], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1310]
call fcn.00402cf0
mov dword [ebp - 0x1314], eax
mov edx, dword [ebp - 0x1314]
mov dword [ebp - 0x1318], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1318]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 1
mov eax, dword [ebp - 0x1304]
push eax
call fcn.00429930
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x113c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x111c]
call fcn.00404940
mov eax, 0x80004005
jmp 0x42bc25
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 0x1304]
add ecx, 0x2a4
push ecx
lea edx, [ebp - 0x11b4]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1198], esp
push 2
push 0x455964
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0x131c], eax
lea ecx, [ebp - 0x1194]
call fcn.00402c20
mov dword [ebp - 0x1320], eax
mov eax, dword [ebp - 0x1320]
mov dword [ebp - 0x1324], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x1324]
call fcn.00402cf0
mov dword [ebp - 0x1328], eax
mov ecx, dword [ebp - 0x1328]
mov dword [ebp - 0x132c], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x132c]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov edx, dword [ebp - 0x1304]
add edx, 0x19c
push edx
lea eax, [ebp - 0x11d0]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
mov dword [ebp - 0x1330], eax
mov ecx, dword [ebp - 0x1330]
mov dword [ebp - 0x1334], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1334]
push edx
lea eax, [ebp - 0x11ec]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov dword [ebp - 0x1338], eax
mov ecx, dword [ebp - 0x1338]
mov dword [ebp - 0x133c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x133c]
push edx
mov ecx, dword [ebp - 0x1304]
add ecx, 0x288
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x11ec]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11d0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11b4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1194]
call fcn.00404940
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xa4], 0
push 0
push 0x80
push 3
push 0
push 0
push closesocket
mov ecx, dword [ebp - 0x1304]
add ecx, 0x288
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa4], eax
call fcn.0041ec50
test eax, eax
je 0x42b587
call fcn.00446640
call fcn.004218b0
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x42b595
jmp 0x42b76c
mov dword [ebp - 0x10c4], 0
xor eax, eax
mov dword [ebp - 0x10c0], eax
lea ecx, [ebp - 0x10c4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0x14], eax
call fcn.0041ebe0
test eax, eax
je 0x42b5d0
call fcn.00423fe0
push 0x74
push 0x71
call fcn.0041ede0
add esp, 8
cmp eax, 0x3a
jne 0x42b5ef
call fcn.0041e5a0
test eax, eax
je 0x42b5ef
call fcn.0043df70
cmp dword [ebp - 0x14], 0
jne 0x42b5fa
jmp 0x42b76c
mov eax, dword [ebp - 0x10c4]
mov dword [ebp - 0x10b8], eax
mov ecx, dword [ebp - 0x10c0]
mov dword [ebp - 0x10b4], ecx
push 0
push 0x989680
mov edx, dword [ebp - 0x10b4]
push edx
mov eax, dword [ebp - 0x10b8]
push eax
call fcn.0044a510
sub eax, 0xb6109100
sbb edx, 2
mov ecx, dword [ebp - 0x1304]
mov dword [ecx + 0x280], eax
mov dword [ecx + 0x284], edx
push 0x2e
push 0x5a
call fcn.0041ede0
add esp, 8
mov dword [ebp - 0x1340], eax
cmp dword [ebp - 0x1340], 0x5c
je 0x42b663
jmp 0x42b665
jmp 0x42b66f
call fcn.00421990
call fcn.00421a00
mov byte [ebp - 0x10b0], 0
push 0xfff
push 0
lea edx, [ebp - 0x10af]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x10bc], 0
push 0x99
push 0xee
push 0xb1
call fcn.0041e6e0
add esp, 0xc
cmp eax, 0x238
jne 0x42b6c2
call fcn.004444e0
test eax, eax
je 0x42b6c2
call fcn.00427090
push 0
lea eax, [ebp - 0x10bc]
push eax
push 0xa
lea ecx, [ebp - 0x10b0]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x42b6fb
cmp dword [ebp - 0x10bc], 0
jne 0x42b6fb
jmp 0x42b76c
push 0x30
call fcn.00401070
add esp, 4
cmp eax, 0x4a
jne 0x42b70c
jmp 0x42b71a
call fcn.00421ae0
call fcn.00421b70
jmp 0x42b71a
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10b0]
push ecx
mov ecx, dword [ebp - 0x1304]
add ecx, 0x1f8
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0
push 0
lea edx, [ebp - 0x10b0]
push edx
call dword [sym.imp.MSVCR90.dll_strtoul]
add esp, 0xc
mov ecx, dword [ebp - 0x1304]
mov dword [ecx + 0x1f4], eax
xor eax, eax
jmp 0x42bc25
cmp dword [ebp - 0xa4], 0
je 0x42b7bf
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa4], 0
call fcn.0041e840
test eax, eax
je 0x42b79f
call fcn.0043df70
call fcn.00421ca0
call fcn.0041e120
mov dword [ebp - 0x1344], eax
cmp dword [ebp - 0x1344], 1
je 0x42b7b5
jmp 0x42b7bf
call fcn.00425e70
call fcn.00421de0
call dword [sym.imp.MSVCR90.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov esi, edx
call dword [sym.imp.MSVCR90.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov edi, edx
shl edi, 8
call dword [sym.imp.MSVCR90.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov ebx, edx
shl ebx, 0x10
call dword [sym.imp.MSVCR90.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
shl edx, 0x18
add edx, ebx
add edx, edi
add edx, esi
mov eax, dword [ebp - 0x1304]
mov dword [eax + 0x1f4], edx
mov dword [ebp - 4], 6
call fcn.004444e0
jmp 0x42b83d
mov dword [ebp - 4], 0xffffffff
push 1
push 3
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dword [ebp - 4], 8
call fcn.0041eb80
mov dword [ebp - 0x1348], eax
cmp dword [ebp - 0x1348], 1
je 0x42b871
jmp 0x42b87b
call fcn.00446ff0
call fcn.00421fa0
mov ecx, dword [ebp - 0x1304]
mov edx, dword [ecx + 0x1f4]
push edx
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea eax, [ebp - 0x1208]
push eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov dword [ebp - 0x134c], eax
mov ecx, dword [ebp - 0x134c]
mov dword [ebp - 0x1350], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1350]
push edx
mov ecx, dword [ebp - 0x1304]
add ecx, 0x1f8
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1208]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call fcn.0041e120
mov dword [ebp - 0x1354], eax
cmp dword [ebp - 0x1354], 1
je 0x42b8fc
jmp 0x42b906
call fcn.00423fe0
call fcn.004220e0
push 0xe0
push 0xe6
call fcn.0041ede0
add esp, 8
cmp eax, 0x70
jne 0x42b92b
call fcn.0043d8a0
test eax, eax
je 0x42b92b
call fcn.004221c0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 0x1304]
add ecx, 0x288
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x42ba76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, dword [ebp - 0x1304]
add esi, 0x288
sub esp, 0x1c
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1280]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1264], esp
push 0x26
push 0x455968
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0x1358], eax
lea ecx, [ebp - 0x1260]
call fcn.00402c20
mov dword [ebp - 0x135c], eax
mov ecx, dword [ebp - 0x135c]
mov dword [ebp - 0x1360], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1360]
call fcn.00403090
mov dword [ebp - 0x1364], eax
mov edx, dword [ebp - 0x1364]
mov dword [ebp - 0x1368], edx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x1368]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 1
mov eax, dword [ebp - 0x1304]
push eax
call fcn.00429930
add esp, 0x2c
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1280]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1260]
call fcn.00404940
push 0xb8
call fcn.00401070
add esp, 4
cmp eax, 0x116
jne 0x42ba4e
call fcn.0041eb10
test eax, eax
je 0x42ba4e
call fcn.00446640
mov dword [ebp - 0x1284], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov eax, dword [ebp - 0x1284]
jmp 0x42bc25
mov dword [ebp - 0x18], 0
push 0xc8
push 8
push 0xd9
call fcn.0041e6e0
add esp, 0xc
mov dword [ebp - 0x136c], eax
cmp dword [ebp - 0x136c], 0xd0
je 0x42baa5
jmp 0x42baa7
jmp 0x42bab1
call fcn.00427090
call fcn.00446ff0
push 0x67
push 0xaf
call fcn.0043da00
add esp, 8
cmp eax, 0x4669
jne 0x42bac9
jmp 0x42bad7
call fcn.00422250
call fcn.004222e0
jmp 0x42bad7
push 0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1304]
add ecx, 0x1f8
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
push eax
mov ecx, dword [ebp - 0x1304]
add ecx, 0x1f8
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x42bb29
cmp dword [ebp - 0x18], 0
jne 0x42bbec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, dword [ebp - 0x1304]
add esi, 0x288
sub esp, 0x1c
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x12fc]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12e0], esp
push 0x24
push 0x455990
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0x1370], eax
lea ecx, [ebp - 0x12dc]
call fcn.00402c20
mov dword [ebp - 0x1374], eax
mov ecx, dword [ebp - 0x1374]
mov dword [ebp - 0x1378], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x1378]
call fcn.00403090
mov dword [ebp - 0x137c], eax
mov edx, dword [ebp - 0x137c]
mov dword [ebp - 0x1380], edx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1380]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 1
mov eax, dword [ebp - 0x1304]
push eax
call fcn.00429930
add esp, 0x2c
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x12fc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x12dc]
call fcn.00404940
cmp dword [ebp - 0xa4], 0
je 0x42bc02
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1300], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov eax, dword [ebp - 0x1300]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xac]
xor ecx, ebp
call fcn.0044a380
mov esp, ebp
pop ebp
ret