Function at 0x413950
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x124
push ebx
push ebp
mov ebp, dword [esp + 0x130]
push esi
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.wf_update.xml
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x24], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wf_update.xml
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.wf_update.xml
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
xor esi, esi
mov eax, ebx
push esi
push esi
not ecx
push 3
push esi
dec ecx
add eax, edx
push 3
push SysReAllocStringLen
push ebx
mov byte [ecx + eax], 0
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x413bb3
mov ebp, dword [sym.imp.MSVCRT.dll__mbsnbset]
push 0x105
lea ecx, [esp + 0x30]
push esi
push ecx
call ebp
mov ecx, dword [esp + 0x24]
add esp, 0xc
xor edi, edi
lea edx, [esp + 0x1c]
push edi
push edx
lea eax, [esp + 0x34]
push 0x104
push eax
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413ba8
jmp 0x413a6e
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x413b9b
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x413b9b
lea esi, [esi + eax + 1]
push esi
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_operatornew
mov ebx, eax
push esi
push 0
push ebx
call ebp
add esp, 0x10
test edi, edi
je 0x413acd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
add esp, 4
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push str._updatestring_string_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
mov edi, str._updatestring_string_
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
je 0x413b5e
push 0x43247c
push esi
call ebx
add esp, 8
test eax, eax
je 0x413b5e
sub eax, esi
mov edi, eax
lea ebx, [edi + 1]
push ebx
call sub.MFC42.DLL_operatornew
push ebx
push 0
push eax
mov dword [esp + 0x24], eax
call ebp
mov eax, dword [esp + 0x24]
push edi
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0x1c
mov dword [esp + 0x20], 1
push 0x105
lea ecx, [esp + 0x30]
push 0
push ecx
call ebp
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push 0
push edx
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x413a6a
test edi, edi
je 0x413ba8
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret