Function at 0x4b3b94
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x7aca10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
test ecx, ecx
jne 0x4b3bc2
xor eax, eax
jmp 0x4b3d9d
test edi, edi
jne 0x4b3be5
call fcn.004ae00a
and dword [eax], edi
call fcn.004ae01d
mov dword [eax], 0x16
call fcn.004adf1c
or eax, 0xffffffff
jmp 0x4b3d9d
push ebx
mov eax, esi
mov ebx, esi
sar ebx, 6
and eax, 0x3f
imul edx, eax, 0x30
mov dword [ebp - 0xc], ebx
mov eax, dword [ebx*4 + 0x7c2d38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], edx
mov bl, byte [eax + edx + 0x29]
cmp bl, 2
je 0x4b3c11
cmp bl, 1
jne 0x4b3c39
mov eax, ecx
not eax
test al, 1
jne 0x4b3c36
call fcn.004ae00a
and dword [eax], 0
call fcn.004ae01d
mov dword [eax], 0x16
call fcn.004adf1c
jmp 0x4b3d91
mov eax, dword [ebp - 0x30]
xor ecx, ecx
test byte [eax + edx + 0x28], 0x20
je 0x4b3c51
push 2
push ecx
push ecx
push esi
call fcn.004c91f1
add esp, 0x10
xor ecx, ecx
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
call fcn.004b3739
pop ecx
test al, al
je 0x4b3c9e
test bl, bl
je 0x4b3c8b
dec bl
cmp bl, 1
ja 0x4b3d2e
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.004b36cc
add esp, 0xc
mov esi, eax
jmp 0x4b3d25
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push edi
push esi
push eax
call fcn.004b3507
add esp, 0x10
jmp 0x4b3c84
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x7c2d38]
test byte [eax + ecx + 0x28], 0x80
je 0x4b3cf4
movsx eax, bl
sub eax, 0
je 0x4b3ce4
sub eax, 1
je 0x4b3cd4
sub eax, 1
jne 0x4b3d34
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push edi
push esi
push eax
call fcn.004b388e
jmp 0x4b3c99
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push edi
push esi
push eax
call fcn.004b397c
jmp 0x4b3c99
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push edi
push esi
push eax
call fcn.004b37af
jmp 0x4b3c99
mov eax, dword [eax + ecx + 0x18]
lea ecx, [ebp - 0x28]
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
push 0
push ecx
push dword [ebp - 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b3d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp dword [ebp - 0x1c], 0
jne 0x4b3d96
cmp dword [ebp - 0x20], 0
je 0x4b3d67
push 5
pop esi
cmp dword [ebp - 0x20], esi
jne 0x4b3d5c
call fcn.004ae01d
mov dword [eax], 9
call fcn.004ae00a
mov dword [eax], esi
jmp 0x4b3d91
push dword [ebp - 0x20]
call fcn.004adfe7
pop ecx
jmp 0x4b3d91
mov eax, dword [edx*4 + 0x7c2d38]
test byte [eax + ecx + 0x28], 0x40
je 0x4b3d7e
cmp byte [edi], 0x1a
jne 0x4b3d7e
xor eax, eax
jmp 0x4b3d9c
call fcn.004ae01d
mov dword [eax], 0x1c
call fcn.004ae00a
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4b3d9c
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret