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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f29c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1374
call fcn.0044b580
mov eax, dword [0x4632c0]
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 0x42cf0f
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 0x42d009
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 0x457228
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.00402290
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.00402620
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.0042b540
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.00403c90
call fcn.00445c30
mov dword [ebp - 0x131c], eax
cmp dword [ebp - 0x131c], 1
je 0x42cff5
jmp 0x42cfff
call fcn.00424570
call fcn.00420df0
mov eax, 0x80004005
jmp 0x42d89f
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 0x45724c
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.00402290
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.00402530
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.00403c90
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 0x42d1a2
jmp 0x42d3b1
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.0041d260
test eax, eax
je 0x42d1dd
call fcn.00424570
push 0x38
call fcn.0041c880
add esp, 4
mov dword [ebp - 0x1344], eax
cmp dword [ebp - 0x1344], 0x56
je 0x42d1f8
jmp 0x42d1fa
jmp 0x42d204
call fcn.00420e80
call fcn.004463f0
cmp dword [ebp - 0x14], 0
jne 0x42d20f
jmp 0x42d3b1
mov eax, dword [ebp - 0x10c4]
mov dword [ebp - 0x10b8], eax
mov ecx, dword [ebp - 0x10c0]
mov dword [ebp - 0x10b4], ecx
push 0x66
push 0xb3
push 0xad
call fcn.0043fb70
add esp, 0xc
cmp eax, 0x1c6
jne 0x42d244
jmp 0x42d252
call fcn.00420f10
call fcn.00421040
jmp 0x42d252
push 0
push 0x989680
mov edx, dword [ebp - 0x10b4]
push edx
mov eax, dword [ebp - 0x10b8]
push eax
call fcn.0044b5c0
sub eax, 0xb6109100
sbb edx, 2
mov ecx, dword [ebp - 0x1304]
mov dword [ecx + 0x280], eax
mov dword [ecx + 0x284], edx
mov dword [ebp - 4], 6
call fcn.0043f860
jmp 0x42d2ab
mov dword [ebp - 4], 0xffffffff
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 - 4], 8
call fcn.00406700
jmp 0x42d2f4
mov dword [ebp - 4], 0xffffffff
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 0x42d33e
cmp dword [ebp - 0x10bc], 0
jne 0x42d33e
jmp 0x42d3b1
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 0x31
push 0x2a
call fcn.0041d0c0
add esp, 8
cmp eax, 0x62
jne 0x42d377
jmp 0x42d385
call fcn.00421380
call fcn.004214b0
jmp 0x42d385
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 0x42d89f
cmp dword [ebp - 0xa4], 0
je 0x42d3fa
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x28
push 8
call fcn.0041d0c0
add esp, 8
mov dword [ebp - 0x1348], eax
cmp dword [ebp - 0x1348], 0x50
je 0x42d3e4
jmp 0x42d3e6
jmp 0x42d3f0
call fcn.00446a30
call fcn.00403ff0
mov dword [ebp - 0xa4], 0
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 0xa
call fcn.0041c880
add esp, 4
mov dword [ebp - 0x134c], eax
cmp dword [ebp - 0x134c], 0x11
je 0x42d46e
jmp 0x42d470
jmp 0x42d47a
call fcn.004215e0
call fcn.00403ff0
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], 0xa
call fcn.00445c30
test eax, eax
je 0x42d4a4
call fcn.00446a30
call fcn.00421650
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_]
mov byte [ebp - 4], 0xb
call fcn.0041d230
jmp 0x42d4df
mov dword [ebp - 4], 0xa
call fcn.0041cda0
test eax, eax
je 0x42d4f4
call fcn.00421990
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 - 0x1350], eax
mov ecx, dword [ebp - 0x1350]
mov dword [ebp - 0x1354], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x1354]
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], 0xa
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_]
mov byte [ebp - 4], 0xe
call fcn.0043f860
jmp 0x42d568
mov dword [ebp - 4], 0xa
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 0x42d6a6
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 0x457250
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.00402290
mov dword [ebp - 0x135c], eax
mov ecx, dword [ebp - 0x135c]
mov dword [ebp - 0x1360], ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x1360]
call fcn.004027f0
mov dword [ebp - 0x1364], eax
mov edx, dword [ebp - 0x1364]
mov dword [ebp - 0x1368], edx
mov byte [ebp - 4], 0x11
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.0042b540
add esp, 0x2c
mov byte [ebp - 4], 0x10
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], 0xa
lea ecx, [ebp - 0x1260]
call fcn.00403c90
call fcn.0041d1c0
test eax, eax
je 0x42d67e
call fcn.00421c30
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 0x42d89f
mov dword [ebp - 0x18], 0
push 0x15
call fcn.0041c880
add esp, 4
mov dword [ebp - 0x136c], eax
cmp dword [ebp - 0x136c], 0x21
je 0x42d6c8
jmp 0x42d6ca
jmp 0x42d6d4
call fcn.00421cc0
call fcn.004278c0
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 0x42d726
cmp dword [ebp - 0x18], 0
jne 0x42d808
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 0x457278
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.00402290
mov dword [ebp - 0x1374], eax
mov ecx, dword [ebp - 0x1374]
mov dword [ebp - 0x1378], ecx
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1378]
call fcn.004023a0
mov dword [ebp - 0x137c], eax
mov edx, dword [ebp - 0x137c]
mov dword [ebp - 0x1380], edx
mov byte [ebp - 4], 0x13
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.0042b540
add esp, 0x2c
mov byte [ebp - 4], 0x12
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], 0xa
lea ecx, [ebp - 0x12dc]
call fcn.00403c90
push 6
call fcn.0041c880
add esp, 4
cmp eax, 0xb
jne 0x42d7fa
jmp 0x42d808
call fcn.00446a30
call fcn.004278c0
jmp 0x42d808
cmp dword [ebp - 0xa4], 0
je 0x42d81e
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 0x42d89f
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.0044b4f4
mov esp, ebp
pop ebp
ret