Function at 0x402b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x358], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x328]
push esi
push edi
mov dword [ebp - 0x34c], ecx
mov dword [ebp - 0x328], ecx
lea ecx, [ebx + 0x23c]
push eax
call fcn.00404a80
mov edi, dword [eax]
mov dword [ebp - 0x338], edi
mov dword [ebp - 0x32c], edi
test edi, edi
jne 0x402bea
mov eax, dword [ebp - 0x328]
lea ecx, [ebp - 0x32c]
push ecx
push 0x423624
push eax
mov edx, dword [eax]
call dword [edx + 0x38]
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebx + 0x23c]
call fcn.00404a80
mov ecx, dword [ebp - 0x32c]
mov dword [eax], ecx
mov edi, dword [ebp - 0x32c]
mov dword [ebp - 0x338], edi
test edi, edi
je 0x402f82
mov eax, dword [edi]
lea ecx, [ebp - 0x318]
push ecx
push 0
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x324], 0
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x318], 0
push ecx
push edi
call dword [eax + 0x48]
mov eax, dword [edi]
lea ecx, [ebp - 0x318]
push ecx
push dword [ebp - 0x324]
push edi
call dword [eax + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x310]
push 0
push eax
push 4
lea eax, [ebp - 0x318]
push eax
push dword [ebx + 0x18]
call esi
nop
mov eax, dword [edi]
lea ecx, [ebp - 0x318]
push ecx
push 0x20
lea ecx, [ebp - 0x30c]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x324]
push ecx
push edi
call dword [eax + 0x48]
cmp dword [ebp - 0x318], 0
mov dword [ebp - 0x354], eax
mov dword [ebp - 0x340], 0
jbe 0x402f69
lea edi, [ebp - 0x30c]
mov dword [ebp - 0x334], edi
nop dword [eax]
push 0
lea eax, [ebp - 0x310]
mov dword [ebp - 0x330], 0
push eax
push 4
push edi
push dword [ebx + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x320], 0
movlpd qword [ebp - 0x364], xmm0
movlpd qword [ebp - 0x35c], xmm0
call esi
mov ecx, dword [ebp - 0x338]
lea edx, [ebp - 0x348]
push edx
lea edx, [ebp - 0x368]
mov dword [ebp - 0x31c], 0
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x36c]
push edx
lea edx, [ebp - 0x370]
push edx
lea edx, [ebp - 0x344]
push edx
lea edx, [ebp - 0x31c]
push edx
push 0xff
lea edx, [ebp - 0x20c]
push edx
lea edx, [ebp - 0x374]
push edx
push dword [edi]
push ecx
call dword [eax + 0x78]
mov eax, dword [ebp - 0x31c]
add eax, eax
push 0
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x310]
push eax
push 4
lea eax, [ebp - 0x31c]
push eax
push dword [ebx + 0x18]
call esi
push 0
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x31c]
lea eax, [ebp - 0x20c]
push eax
push dword [ebx + 0x18]
call esi
push 0
lea eax, [ebp - 0x310]
push eax
push 4
lea eax, [ebp - 0x344]
push eax
push dword [ebx + 0x18]
call esi
push 0
lea eax, [ebp - 0x310]
push eax
push 4
lea eax, [ebp - 0x348]
push eax
push dword [ebx + 0x18]
call esi
mov ecx, dword [ebp - 0x34c]
lea edx, [ebp - 0x330]
push edx
push dword [edi]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x24]
test eax, eax
jne 0x402eb8
mov eax, dword [ebp - 0x330]
lea edx, [ebp - 0x314]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jne 0x402dee
mov eax, dword [ebp - 0x314]
lea edx, [ebp - 0x364]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x314]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x330]
lea edx, [ebp - 0x314]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jne 0x402eb8
mov eax, dword [ebp - 0x314]
lea edx, [ebp - 0x35c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x314]
lea edx, [ebp - 0x33c]
push edx
push 0x41d400
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x402eac
push 0x80
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00406650
mov eax, dword [ebp - 0x33c]
lea edx, [ebp - 0x28c]
add esp, 0xc
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x350]
push edx
push 8
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x33c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebp - 0x350]
xor edx, edx
mov dword [ebp - 0x320], edx
test esi, esi
je 0x402ea6
lea eax, [ebp - 0x28c]
nop dword [eax]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x402e98
inc edx
add eax, 0x10
sub esi, 1
jne 0x402e90
mov dword [ebp - 0x320], edx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x314]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
lea eax, [ebp - 0x310]
push eax
push 8
lea eax, [ebp - 0x364]
push eax
push dword [ebx + 0x18]
call esi
push 0
lea eax, [ebp - 0x310]
push eax
push 8
lea eax, [ebp - 0x35c]
push eax
push dword [ebx + 0x18]
call esi
push 0
lea eax, [ebp - 0x310]
push eax
push 4
lea eax, [ebp - 0x320]
push eax
push dword [ebx + 0x18]
call esi
xor edi, edi
cmp dword [ebp - 0x320], edi
jbe 0x402f37
lea esi, [ebp - 0x28c]
nop dword [eax]
push 0
lea eax, [ebp - 0x310]
push eax
push 0x10
push esi
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
add esi, 0x10
cmp edi, dword [ebp - 0x320]
jb 0x402f10
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x340]
add dword [ebp - 0x334], 4
inc edi
cmp edi, dword [ebp - 0x318]
mov dword [ebp - 0x340], edi
mov edi, dword [ebp - 0x334]
jb 0x402ca0
mov edi, dword [ebp - 0x338]
mov eax, dword [ebp - 0x354]
test eax, eax
je 0x402c50
mov ecx, dword [ebp - 0x324]
test ecx, ecx
je 0x402f82
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0xc]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004050db
mov esp, ebp
pop ebp
ret 0xc