Function at 0x41ac00
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43a862
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x44e7a0]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0x148]
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x5c], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [ebx + 0x278]
mov cl, byte [eax + 0x9c]
test cl, cl
mov dword [esp + 0x64], 0
je 0x41ac82
push str..tmp
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00401fd0
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 1
call dword [0x43d1c4]
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [ebx + 0x278]
mov al, byte [edx + 0x9c]
test al, al
mov byte [esp + 0x13], 0
je 0x41ada4
mov eax, dword [esi + 0x18]
mov edi, 0x10
cmp eax, edi
jb 0x41acac
mov esi, dword [esi + 4]
jmp 0x41acaf
add esi, 4
push 0
push 0x80
push 3
push 0
push 3
push connect
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41ad02
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
jae 0x41acdf
lea eax, [esp + 0x40]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ad1b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x41ae23
mov eax, dword [ebx + 0x168]
push eax
mov dword [esp + 0x18], 0
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov edx, dword [ebx + 0x168]
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ad93
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x168]
jne 0x41ad93
cmp eax, 0x4000
push 0
jae 0x41ad66
push eax
jmp 0x41ad6b
push 0x4000
push esi
call fcn.0042f190
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x41ad98
mov byte [esp + 0x13], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x40]
jae 0x41adb9
lea eax, [esp + 0x40]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004253b0
add esp, 8
test eax, eax
jne 0x41ade8
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0xbc]
jne 0x41ade8
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [ebx + 0xc0]
jne 0x41ade8
mov byte [esp + 0x13], 1
mov edx, dword [ebx + 0x278]
mov al, byte [edx + 0x9c]
test al, al
je 0x41ae0d
cmp dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
jae 0x41ae06
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4c]
pop ebx
call fcn.00437d67
add esp, 0x58
ret