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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d2dc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1380
call fcn.00449690
mov eax, dword [0x4612c0]
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 0x42adbf
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 0x42aec0
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 0x454a28
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.00402390
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.004025c0
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.004293c0
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.004355a0
push 0x33
call fcn.0041cab0
add esp, 4
mov dword [ebp - 0x131c], eax
cmp dword [ebp - 0x131c], 0x4e
je 0x42aeaa
jmp 0x42aeac
jmp 0x42aeb6
call fcn.0041f2c0
call fcn.004078a0
mov eax, 0x80004005
jmp 0x42b755
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 0x454a4c
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 - 0x1320], eax
lea ecx, [ebp - 0x1194]
call fcn.00402390
mov dword [ebp - 0x1324], eax
mov eax, dword [ebp - 0x1324]
mov dword [ebp - 0x1328], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x1328]
call fcn.004028c0
mov dword [ebp - 0x132c], eax
mov ecx, dword [ebp - 0x132c]
mov dword [ebp - 0x1330], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1330]
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 - 0x1334], eax
mov ecx, dword [ebp - 0x1334]
mov dword [ebp - 0x1338], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1338]
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 - 0x133c], eax
mov ecx, dword [ebp - 0x133c]
mov dword [ebp - 0x1340], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1340]
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.004355a0
push 0xf8
push 0xda
call fcn.0041c500
add esp, 8
mov dword [ebp - 0x1344], eax
cmp dword [ebp - 0x1344], 0xd330
je 0x42b02f
jmp 0x42b031
jmp 0x42b03b
call fcn.0041f400
call fcn.0043ece0
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
cmp dword [ebp - 0xa4], 0xffffffff
jne 0x42b08b
jmp 0x42b302
call fcn.0041bea0
test eax, eax
je 0x42b099
call fcn.00426580
mov dword [ebp - 0x10c4], 0
xor eax, eax
mov dword [ebp - 0x10c0], eax
call fcn.0041c5c0
mov dword [ebp - 0x1348], eax
cmp dword [ebp - 0x1348], 1
je 0x42b0c1
jmp 0x42b0cb
call fcn.00420fa0
call fcn.00420fa0
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
push 0x5e
push 0x5c
call fcn.00443eb0
add esp, 8
mov dword [ebp - 0x134c], eax
cmp dword [ebp - 0x134c], 0xbc
je 0x42b106
jmp 0x42b108
jmp 0x42b112
call fcn.0041f4e0
call fcn.0041f5c0
cmp dword [ebp - 0x14], 0
jne 0x42b11d
jmp 0x42b302
push 0xd9
push 0xbf
push 0x60
call fcn.00444100
add esp, 0xc
mov dword [ebp - 0x1350], eax
cmp dword [ebp - 0x1350], 0x1f8
je 0x42b145
jmp 0x42b147
jmp 0x42b151
call fcn.0043ece0
call fcn.00402070
mov eax, dword [ebp - 0x10c4]
mov dword [ebp - 0x10b8], eax
mov ecx, dword [ebp - 0x10c0]
mov dword [ebp - 0x10b4], ecx
push 0xc
push 0xfc
call fcn.00443eb0
add esp, 8
cmp eax, 6
jne 0x42b18b
call fcn.00403d20
test eax, eax
je 0x42b18b
call fcn.0041f6a0
mov dword [ebp - 4], 6
call fcn.00403d20
jmp 0x42b1b0
mov dword [ebp - 4], 0xffffffff
push 0
push 0x989680
mov edx, dword [ebp - 0x10b4]
push edx
mov eax, dword [ebp - 0x10b8]
push eax
call fcn.004496d0
sub eax, 0xb6109100
sbb edx, 2
mov ecx, dword [ebp - 0x1304]
mov dword [ecx + 0x280], eax
mov dword [ecx + 0x284], edx
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 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 0x42b24e
cmp dword [ebp - 0x10bc], 0
jne 0x42b24e
jmp 0x42b302
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__]
call fcn.0041c590
test eax, eax
je 0x42b287
call fcn.0043ece0
call fcn.0041f7c0
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 0x42b755
cmp dword [ebp - 0xa4], 0
je 0x42b34e
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa4], 0
push 0x26
push 0xb9
call fcn.00443eb0
add esp, 8
mov dword [ebp - 0x135c], eax
cmp dword [ebp - 0x135c], 0x13
je 0x42b342
jmp 0x42b344
jmp 0x42b34e
call fcn.0041faa0
call fcn.0041cf60
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
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
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 - 0x1360], eax
mov ecx, dword [ebp - 0x1360]
mov dword [ebp - 0x1364], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1364]
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_]
push 0x2d
push 0x3c
call fcn.00443eb0
add esp, 8
mov dword [ebp - 0x1368], eax
cmp dword [ebp - 0x1368], 0x5a
je 0x42b446
jmp 0x42b448
jmp 0x42b452
call fcn.0041fb80
call fcn.00420fa0
push 0x97
push 0xe2
call fcn.00443eb0
add esp, 8
cmp eax, 0x4b
jne 0x42b46b
jmp 0x42b479
call fcn.00420fa0
call fcn.0041fc00
jmp 0x42b479
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 0x42b5a2
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 0x454a50
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 - 0x136c], eax
lea ecx, [ebp - 0x1260]
call fcn.00402390
mov dword [ebp - 0x1370], eax
mov ecx, dword [ebp - 0x1370]
mov dword [ebp - 0x1374], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1374]
call fcn.004025c0
mov dword [ebp - 0x1378], eax
mov edx, dword [ebp - 0x1378]
mov dword [ebp - 0x137c], edx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x137c]
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.004293c0
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.004355a0
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 0x42b755
mov dword [ebp - 0x18], 0
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 0x42b5fb
cmp dword [ebp - 0x18], 0
jne 0x42b6e3
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 0x454a78
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 - 0x1380], eax
lea ecx, [ebp - 0x12dc]
call fcn.00402390
mov dword [ebp - 0x1384], eax
mov ecx, dword [ebp - 0x1384]
mov dword [ebp - 0x1388], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x1388]
call fcn.004025c0
mov dword [ebp - 0x138c], eax
mov edx, dword [ebp - 0x138c]
mov dword [ebp - 0x1390], edx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1390]
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.004293c0
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.004355a0
push 0xb5
push 0x8d
call fcn.00443eb0
add esp, 8
cmp eax, 0x5a
jne 0x42b6e3
call fcn.0041c3a0
test eax, eax
je 0x42b6e3
call fcn.004269e0
cmp dword [ebp - 0xa4], 0
je 0x42b6f9
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]
jmp 0x42b755
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.00449600
mov esp, ebp
pop ebp
ret