Function at 0x4333dc
Capabilities:
Write file on windows

Disassembly:
push 0x40
mov eax, 0x45b021
call fcn.00438c9e
mov esi, ecx
mov eax, dword [ebp + 8]
cmp eax, 3
jne 0x4335f4
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea edi, [esi + 0xc0]
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x18], ebx
jb 0x433427
mov eax, dword [edi]
push ebx
push 0x405edc
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00436a70
add esp, 0x14
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
jb 0x433447
mov eax, dword [ebp - 0x30]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [0x460968]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x433522
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x38], 0
pop edi
mov dword [ebp - 0x34], edi
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push 0x59e
push eax
call fcn.00435b36
pop ecx
pop ecx
push 8
lea eax, [esi + 0xd8]
pop ebx
cmp dword [eax + 0x14], ebx
jb 0x4334a6
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jb 0x4334b1
mov ecx, dword [ebp - 0x48]
push 0x10
push eax
push ecx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x34]
mov esi, 0x1000
cmp eax, ebx
jb 0x4334fc
mov ecx, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], ecx
cmp eax, esi
jb 0x4334f3
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x4c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.00438c1d
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], edi
cmp eax, ebx
jb 0x43360b
lea eax, [eax*2 + 2]
cmp eax, esi
jmp 0x4335c9
xor ecx, ecx
cmp dword [esi + 0x80], ecx
je 0x433565
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0xfeff
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0xb8]
lea ecx, [esi + 0xa8]
cmp dword [ecx + 0x14], 8
jb 0x433559
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x18]
add eax, eax
push edx
push eax
push ecx
jmp 0x43357f
lea eax, [esi + 0x90]
cmp dword [eax + 0x14], 0x10
jb 0x433573
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [esi + 0xa0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x14], 8
jb 0x433595
mov edi, dword [edi]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x4335a1
mov eax, dword [ebp - 0x30]
push 1
push edi
push 0
push eax
push 0x405ef0
push dword [esi + 8]
call dword [0x46098c]
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x43360b
lea eax, [eax*2 + 2]
cmp eax, 0x1000
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x14], eax
jb 0x4335e9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00414eaa
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
push eax
push ecx
call fcn.00438c1d
pop ecx
pop ecx
jmp 0x43360b
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x88]
test eax, eax
je 0x43360b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.00438c4d
ret 4