Function at 0x4047f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3c
mov ecx, dword [0x4299a8]
mov edx, dword [0x42a050]
xor eax, eax
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x2c], eax
push edi
mov dword [esp + 0x34], eax
xor ebx, ebx
push ebx
mov dword [esp + 0x3c], eax
push 0x403c40
mov dword [esp + 0x44], eax
push ecx
mov dword [esp + 0x4c], eax
push 0x8a
mov dword [esp + 0x54], eax
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], 4
mov dword [esp + 0x40], ebx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov eax, dword [0x4299b0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push str.Unpacking...
push ebx
push 0xc
push eax
call esi
push 0x800
xor eax, eax
push 0x4287a0
mov ecx, 0x200
mov edi, 0x4287a0
rep stosd dword es:[edi], eax
mov ecx, dword [0x42a050]
push 0x72
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [0x4299ac]
push 0x4287a0
push ebx
push 0x40b
push edx
call esi
mov eax, dword [0x4299b4]
inc eax
cmp eax, 0x10
mov dword [0x4299b4], eax
jle 0x4048c5
mov eax, dword [0x4299a8]
push eax
mov dword [0x4299b4], ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push ebx
push ebx
push 0x1032
push 0x3e8
push ebp
call esi
push 2
push 0xffffffffffffffff
push 0x100c
push 0x3e8
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
call esi
mov ebx, eax
test ebx, ebx
jl 0x404adc
lea ecx, [ecx]
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x104b
push 0x3e8
push ebp
mov dword [esp + 0x3c], ebx
call esi
mov eax, dword [esp + 0x44]
test eax, eax
mov edi, eax
jne 0x40495a
mov edx, dword [0x42a050]
push 0x800
push 0x4287a0
push 0x68
mov ecx, 0x200
mov edi, 0x4287a0
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
push 0x4287a0
push ebp
call fcn.00403cd0
add esp, 0xc
jmp 0x404a7b
add eax, 0x1f
push eax
call fcn.00401e70
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00403b10
add esp, 0x10
test eax, eax
jne 0x404acc
mov eax, dword [edi]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
call fcn.004032e0
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
je 0x404a97
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404a2e
push esi
call fcn.00402080
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404a2e
push 0x800
xor eax, eax
push 0x4287a0
mov ecx, 0x200
mov edi, 0x4287a0
rep stosd dword es:[edi], eax
mov ecx, dword [0x42a050]
push 0x67
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
push 0x4287a0
push ebp
call fcn.00403cd0
add esp, 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x404a75
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x24]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
inc dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push 2
push ebx
push 0x100c
push 0x3e8
push ebp
call esi
mov ebx, eax
test ebx, ebx
jge 0x404900
jmp 0x404adc
push 0x800
xor eax, eax
push 0x4287a0
mov ecx, 0x200
mov edi, 0x4287a0
rep stosd dword es:[edi], eax
mov eax, dword [0x42a050]
push 0x66
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
push 0x4287a0
push ebp
call fcn.00403cd0
add esp, 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x4299b0]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x42a050]
push 0x800
push 0x4287a0
push 0x6b
xor eax, eax
mov ecx, 0x200
mov edi, 0x4287a0
push edx
mov dword [0x4299b0], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x4299ac]
push 0x4287a0
push 0
push 0x40b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x4299b4]
pop edi
pop esi
inc eax
cmp eax, 0x10
pop ebp
mov dword [0x4299b4], eax
pop ebx
jle 0x404b5d
mov ecx, dword [0x4299a8]
push ecx
mov dword [0x4299b4], 0
call dword [sym.imp.USER32.dll_UpdateWindow]
add esp, 0x3c
ret