Function at 0x46b015
Capabilities:
Write file on windows

Disassembly:
push 0x90
mov eax, 0x47426b
call fcn.0044f666
mov dword [ebp - 0x8c], ecx
mov ebx, dword [ebp + 8]
mov edi, 0x194
xor eax, eax
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x64], al
mov dword [ebp - 4], 1
lea eax, [ebp - 0x64]
or dword [ebp - 0x90], 0xffffffff
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], 0x40f7dc
mov dword [ebp - 0x94], 0x44fb5c
jb 0x46b074
mov edx, dword [edx]
push ecx
lea ecx, [ebp - 0x90]
call fcn.0044fcf2
pop ecx
test eax, eax
je 0x46b08f
xor edi, edi
inc edi
xor ebx, ebx
jmp 0x46b246
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x9c]
call fcn.0045680a
lea ecx, [ebp - 0x90]
mov esi, eax
call fcn.0044fcc8
test esi, esi
je 0x46b0b6
push 2
pop edi
jmp 0x46b088
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
push 0xf
pop ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
push dword [ebp - 0x8c]
call fcn.0045bbc8
test eax, eax
jne 0x46b133
push 3
pop edi
xor ebx, ebx
mov byte [ebp - 4], 8
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402df3
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00402df3
mov byte [ebp - 4], 0xa
jmp 0x46b23b
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x64]
add eax, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.0045b82d
pop ecx
test eax, eax
jne 0x46b214
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x8c], eax
jb 0x46b175
mov ebx, dword [ebx]
push eax
push eax
push 2
push eax
push 7
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46b1eb
test esi, esi
je 0x46b1eb
xor ebx, ebx
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push ebx
cmovae ecx, dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x8c], ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
push esi
cmovne edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.00402df3
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call fcn.00402df3
mov byte [ebp - 4], 0x13
jmp 0x46b23b
push 5
pop edi
xor ebx, ebx
mov byte [ebp - 4], 0xb
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402df3
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.00402df3
mov byte [ebp - 4], 0xd
jmp 0x46b23b
push 4
pop edi
xor ebx, ebx
mov byte [ebp - 4], 0xe
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402df3
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xf
call fcn.00402df3
mov byte [ebp - 4], 0x10
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.00402df3
push ebx
push 1
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0x14
call fcn.00402df3
mov eax, edi
call fcn.0044f621
ret