Function at 0x40e510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419428
push 0x4181f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [str..Silvana]
mov dword [ebp - 0x38], eax
mov ecx, dword [0x41cc60]
mov dword [ebp - 0x34], ecx
mov dl, byte [0x41cc64]
mov byte [ebp - 0x30], dl
mov dword [ebp - 0x48], 0
push 0
push 0
push 0x18b
push 0x3fb
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x40e59a
push str.Youve_to_add_APIs_in_the_list_first__
push esi
call fcn.004043a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x64
lea eax, [ebp - 0x1a0]
push eax
push 0x445
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jne 0x40e5d4
push str.No_dll_specified__
push esi
call fcn.004043a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41dfe4]
xor ecx, ecx
mov edx, dword [0x41dfd8]
mov cx, word [edx + 6]
test ecx, ecx
jbe 0x40e60e
mov edx, ecx
mov ecx, 2
lea edi, [ebp - 0x38]
mov esi, eax
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
jne 0x40e605
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x48], 1
add eax, 0x28
dec edx
jne 0x40e5eb
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x40e63f
call fcn.00415bf0
test eax, eax
jne 0x40e63f
push str.Not_enough_room_for_a_new_section_available__
push esi
call fcn.004043a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41dfe0]
mov ecx, dword [eax + 8]
push ecx
call fcn.004161b0
add esp, 4
mov ebx, eax
mov dword [ebp - 0x64], ebx
test ebx, ebx
jne 0x40e67f
mov edx, dword [str.Couldnt_obtain_offset__]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004043a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp dword [ebx], 0
setne cl
mov dword [ebp - 0x60], ecx
push 0x4000
call fcn.00401a60
add esp, 4
mov edx, eax
mov dword [ebp - 0x2c], edx
mov ecx, 0x1000
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40e6e8
mov eax, dword [ebp - 0x68]
mov esi, dword [eax + 0x14]
mov eax, ebx
sub eax, esi
mov edi, dword [0x41dfcc]
sub eax, edi
mov dword [ebp - 0x138], eax
mov ecx, eax
add esi, edi
mov edi, edx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [eax + edx]
mov dword [ebp - 0x13c], edi
mov eax, edi
sub eax, edx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1a0]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + edi + 1]
mov dword [ebp - 0x13c], ebx
mov esi, ebx
sub esi, dword [ebp - 0x2c]
mov dword [ebp - 0x44], esi
xor edi, edi
mov dword [ebp - 0x5c], edi
cmp edi, dword [ebp - 0x28]
jae 0x40e778
mov word [ebx], 0
add ebx, 2
mov dword [ebp - 0x13c], ebx
lea eax, [ebp - 0x130]
push eax
push edi
push 0x189
push 0x3fb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea edx, [ebp - 0x130]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
mov dword [ebp - 0x13c], ebx
inc edi
jmp 0x40e71e
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x40e7c3
call fcn.00415c20
call fcn.00415cc0
mov edi, eax
mov dword [ebp - 0x68], edi
xor ecx, ecx
mov edx, edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [ebp - 0x38]
mov edx, ecx
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, dword [ebp - 0x68]
mov dword [edi + 0x24], 0xc0000040
mov esi, dword [ebp - 0x44]
jmp 0x40e7c6
mov edi, dword [ebp - 0x68]
mov eax, ebx
mov dword [ebp - 0x20], eax
mov ecx, ebx
mov edx, dword [ebp - 0x2c]
sub ecx, edx
mov dword [ebp - 0x134], ecx
add esi, edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x5c], ecx
jae 0x40e81a
mov ecx, dword [edi + 0xc]
sub ecx, dword [ebp - 0x2c]
add ecx, esi
mov dword [eax], ecx
add esi, 2
mov dword [ebp - 0x1c], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x20]
add ecx, 4
mov dword [ebp - 0x20], ecx
inc dword [ebp - 0x5c]
mov eax, ecx
jmp 0x40e7e4
mov dword [eax], 0
lea eax, [ebx + ecx*4 + 4]
mov dword [ebp - 0x13c], eax
mov ebx, eax
mov dword [ebp - 0x4c], ebx
mov esi, dword [ebp - 0x2c]
sub eax, esi
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x40e863
mov ecx, 5
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
add ebx, 0x14
mov dword [ebp - 0x4c], ebx
add eax, 0x14
mov dword [ebp - 0x64], eax
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x2c]
jmp 0x40e83a
mov eax, dword [ebp - 0x24]
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x134]
lea ecx, [eax + edx]
mov dword [ebx + 0x10], ecx
mov eax, dword [ebp - 0x60]
neg eax
sbb eax, eax
and eax, ecx
mov dword [ebx], eax
add ebx, 0x14
mov dword [ebp - 0x4c], ebx
xor ecx, ecx
mov edx, ebx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov eax, dword [0x41dfe0]
mov ecx, dword [eax + 8]
push ecx
call fcn.00416280
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x40e8d1
or dword [eax + 0x24], 0x80000000
add ebx, 0x14
mov dword [ebp - 0x4c], ebx
sub ebx, esi
mov dword [ebp - 0x138], ebx
push ebx
push 0x1000
call fcn.00415bc0
add esp, 8
mov dword [edi + 8], eax
mov dword [edi + 0x10], ebx
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x40e905
mov eax, dword [0x41dfd8]
mov edx, dword [edi + 8]
add dword [eax + 0x50], edx
mov eax, dword [ebp - 0x1a4]
add eax, dword [edi + 0xc]
mov ecx, dword [0x41dfe0]
mov dword [ecx + 8], eax
mov dword [ebp - 4], 0xffffffff
push 0x41dec0
call fcn.00416420
add esp, 4
mov ebx, dword [edi + 0x14]
mov edi, dword [edi + 0x10]
mov edx, dword [0x41dfcc]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0
push 0
push ebx
mov eax, dword [0x41dfc4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x40]
push ecx
push edi
push esi
mov edx, dword [0x41dfc4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x41dfc4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00401a90
push 0x41dec0
call fcn.00415890
add esp, 8
test eax, eax
je 0x40e9a6
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ffb0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41d994]
test eax, eax
je 0x40e9be
mov edx, dword [0x41dfcc]
push edx
call fcn.004162d0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret