Function at 0x434ec5
Capabilities:
Write file on windows

Disassembly:
push 0x40
mov eax, 0x45d2df
call fcn.0043aa0b
mov ebx, ecx
mov eax, dword [ebp + 8]
cmp eax, 3
jne 0x4350f8
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea edi, [ebx + 0xc0]
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x18], esi
jb 0x434f10
mov eax, dword [edi]
push esi
push 0x40653c
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.004386be
add esp, 0x14
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
jb 0x434f30
mov eax, dword [ebp - 0x30]
push esi
push 0x80
push 2
push esi
mov esi, dword [0x462980]
mov ecx, esi
push 1
push 0xc0000000
push eax
call dword [0x465348]
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x43501a
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push 0x59e
push eax
call fcn.004376fb
pop ecx
pop ecx
push 8
lea eax, [ebx + 0xd8]
pop esi
cmp dword [eax + 0x14], esi
jb 0x434f9a
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jb 0x434fa5
mov ecx, dword [ebp - 0x48]
push 0x10
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x34]
mov edi, 0x1000
cmp eax, esi
jb 0x434ff0
mov ecx, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], ecx
cmp eax, edi
jb 0x434fe7
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x4c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0043a98a
pop ecx
pop ecx
and dword [ebp - 0x38], 0
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 7
cmp eax, esi
jb 0x43510f
lea eax, [eax*2 + 2]
cmp eax, edi
jmp 0x4350cd
xor ecx, ecx
cmp dword [ebx + 0x80], ecx
je 0x43505f
mov eax, 0xfeff
push ecx
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0xb8]
lea ecx, [ebx + 0xa8]
cmp dword [ecx + 0x14], 8
jb 0x435053
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x18]
add eax, eax
push edx
push eax
push ecx
jmp 0x435079
lea eax, [ebx + 0x90]
cmp dword [eax + 0x14], 0x10
jb 0x43506d
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebx + 0xa0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x14], 8
jb 0x43508f
mov edi, dword [edi]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x43509b
mov eax, dword [ebp - 0x30]
mov esi, dword [0x4629a4]
mov ecx, esi
push 1
push edi
push 0
push eax
push 0x406550
push dword [ebx + 8]
call dword [0x465348]
call esi
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x43510f
lea eax, [eax*2 + 2]
cmp eax, 0x1000
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x14], eax
jb 0x4350ed
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
push eax
push ecx
call fcn.0043a98a
pop ecx
pop ecx
jmp 0x43510f
mov dword [ebx + 0x8c], eax
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x43510f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.0043a9ba
ret 4