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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f56c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1370
call fcn.0044b8d0
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 0x42bd1f
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 0x42be19
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 0x456bb0
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.004034e0
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.00403a60
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.0042a3d0
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.004050e0
call fcn.0041f0b0
mov dword [ebp - 0x131c], eax
cmp dword [ebp - 0x131c], 1
je 0x42be05
jmp 0x42be0f
call fcn.004210e0
call fcn.00421170
mov eax, 0x80004005
jmp 0x42c677
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 0x456bd4
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.004034e0
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.00403c30
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.004050e0
call fcn.0041e8d0
mov dword [ebp - 0x1344], eax
cmp dword [ebp - 0x1344], 1
je 0x42bf78
jmp 0x42bf82
call fcn.004212b0
call fcn.0043fdb0
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 0x42bfd2
jmp 0x42c1f0
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
cmp dword [ebp - 0x14], 0
jne 0x42c00a
jmp 0x42c1f0
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.0044b910
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
push 0xc6
push 0xa9
call fcn.00407ff0
add esp, 8
mov dword [ebp - 0x1348], eax
cmp dword [ebp - 0x1348], 0x82b6
je 0x42c099
jmp 0x42c09b
jmp 0x42c0a5
call fcn.00402aa0
call fcn.0043fdb0
mov dword [ebp - 0x10bc], 0
push 0x7d
push 0x37
push 0x39
call fcn.00444f70
add esp, 0xc
cmp eax, 0xb4
jne 0x42c0d2
call fcn.004013b0
test eax, eax
je 0x42c0d2
call fcn.00402d20
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
push 0xe0
push 0xb8
push 0xb2
call fcn.00444f70
add esp, 0xc
cmp eax, 0x24a
jne 0x42c117
jmp 0x42c125
call fcn.00421330
call fcn.00425b60
jmp 0x42c125
cmp dword [ebp - 0xa8], 0
jne 0x42c13c
cmp dword [ebp - 0x10bc], 0
jne 0x42c13c
jmp 0x42c1f0
mov dword [ebp - 4], 6
call fcn.004051f0
jmp 0x42c161
mov dword [ebp - 4], 0xffffffff
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 0x36
push 0x6b
push 0x8f
call fcn.00444f70
add esp, 0xc
cmp eax, 0xa1
jne 0x42c1a8
jmp 0x42c1b6
call fcn.004213a0
call fcn.004465f0
jmp 0x42c1b6
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
call fcn.0041f040
test eax, eax
je 0x42c1e4
call fcn.00421de0
xor eax, eax
jmp 0x42c677
cmp dword [ebp - 0xa4], 0
je 0x42c23c
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 8
call fcn.0041efd0
jmp 0x42c22b
mov dword [ebp - 4], 0xffffffff
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 0x7c
push 0xd9
push 0x62
call fcn.00444f70
add esp, 0xc
mov dword [ebp - 0x134c], eax
cmp dword [ebp - 0x134c], 0x1b7
je 0x42c2ba
jmp 0x42c2bc
jmp 0x42c2c6
call fcn.00421570
call fcn.004216a0
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.0041e680
test eax, eax
je 0x42c2eb
call fcn.00426060
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_]
call fcn.0041ea10
test eax, eax
je 0x42c317
call fcn.00421730
call fcn.00421860
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], 0xb
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_]
push 0xd7
call fcn.00401060
add esp, 4
cmp eax, 0x144
jne 0x42c38b
call fcn.0041ef60
test eax, eax
je 0x42c38b
call fcn.00402d20
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 0x42c4b4
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 0x456bd8
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.004034e0
mov dword [ebp - 0x135c], eax
mov ecx, dword [ebp - 0x135c]
mov dword [ebp - 0x1360], ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x1360]
call fcn.00403630
mov dword [ebp - 0x1364], eax
mov edx, dword [ebp - 0x1364]
mov dword [ebp - 0x1368], edx
mov byte [ebp - 4], 0xd
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.0042a3d0
add esp, 0x2c
mov byte [ebp - 4], 0xc
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.004050e0
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 0x42c677
mov dword [ebp - 0x18], 0
push 6
push 0x58
push 0x53
call fcn.00444f70
add esp, 0xc
cmp eax, 0xb1
jne 0x42c4d2
jmp 0x42c4e0
call fcn.00421de0
call fcn.00425b60
jmp 0x42c4e0
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 0x42c532
cmp dword [ebp - 0x18], 0
jne 0x42c5f5
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 0x456c00
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 - 0x12dc]
call fcn.004034e0
mov dword [ebp - 0x1370], eax
mov ecx, dword [ebp - 0x1370]
mov dword [ebp - 0x1374], ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1374]
call fcn.00403630
mov dword [ebp - 0x1378], eax
mov edx, dword [ebp - 0x1378]
mov dword [ebp - 0x137c], edx
mov byte [ebp - 4], 0xf
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.0042a3d0
add esp, 0x2c
mov byte [ebp - 4], 0xe
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.004050e0
cmp dword [ebp - 0xa4], 0
je 0x42c654
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x10
call fcn.0041ea10
jmp 0x42c62d
mov dword [ebp - 4], 0xa
call fcn.0041ea10
mov dword [ebp - 0x1380], eax
cmp dword [ebp - 0x1380], 1
je 0x42c64a
jmp 0x42c654
call fcn.004218d0
call fcn.004465f0
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.0044b84a
mov esp, ebp
pop ebp
ret