Function at 0x4b9306
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4230
call fcn.0047c100
push ebx
mov ebx, dword [ebp + 0x14]
push esi
cmp ebx, 3
push edi
mov esi, ecx
je 0x4b933c
cmp ebx, 2
je 0x4b93c0
cmp ebx, 1
je 0x4b93c0
mov eax, 0x10000
jmp 0x4b95cf
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x4b9384
cmp eax, 0xffffffff
je 0x4b9353
push dword [esi]
call fcn.004b8d59
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x4b9332
cmp edi, dword [eax + 0x10]
jge 0x4b936a
push eax
call fcn.004b87bb
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jge 0x4b9379
push eax
call fcn.004b87f9
jmp 0x4b9369
push dword [esi]
call fcn.004b8aff
pop ecx
mov dword [esi + 4], edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call fcn.004b8bec
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x4b93a4
mov eax, 0x600
jmp 0x4b95cf
push dword [esi]
call fcn.004b8d59
or dword [esi + 4], 0xffffffff
mov eax, edi
neg eax
sbb eax, eax
pop ecx
and eax, 0x5000000
jmp 0x4b95cf
cmp dword [esi + 4], 0xffffffff
je 0x4b93ce
push dword [esi]
call fcn.004b8d59
pop ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x4b9332
cmp edi, dword [eax + 0x10]
jge 0x4b93ec
push eax
call fcn.004b87bb
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jge 0x4b93fb
push eax
call fcn.004b87f9
jmp 0x4b93eb
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
push edi
call fcn.004b8ea9
test byte [ebp - 0x128], 0x10
je 0x4b9436
cmp ebx, 1
jne 0x4b941f
xor eax, eax
jmp 0x4b95cf
lea eax, [ebp - 0x22c]
add esi, 0x138
push eax
push esi
call fcn.004b926d
pop ecx
pop ecx
jmp 0x4b9418
cmp ebx, 1
jne 0x4b9443
mov eax, dword [ebp + 0xc]
jmp 0x4b9513
mov ebx, dword [ebp + 0xc]
mov edi, ebx
mov ecx, ebx
mov al, byte [ebx]
test al, al
je 0x4b94fa
cmp al, 0x2f
je 0x4b945c
cmp al, 0x5c
jne 0x4b945f
lea edi, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4b9454
cmp edi, ebx
je 0x4b94fa
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.0047b680
sub edi, ebx
pop ecx
pop ecx
and byte [ebp + edi - 0x105], 0
cmp byte [ebp - 0x104], 0x2f
je 0x4b94a9
cmp byte [ebp - 0x104], 0x5c
je 0x4b94a9
cmp byte [ebp - 0x103], 0x3a
je 0x4b94a9
and byte [ebp + 0xf], 0
jmp 0x4b94ad
mov byte [ebp + 0xf], 1
lea eax, [ebp - 0x104]
push 0x533b88
push eax
call fcn.0047ccc7
mov edi, eax
lea eax, [ebp - 0x104]
push 0x533b84
push eax
call fcn.0047ccc7
add esp, 0x10
test eax, eax
setne al
test edi, edi
setne cl
or al, cl
or al, byte [ebp + 0xf]
jne 0x4b94fa
lea eax, [ebp - 0x104]
push eax
lea eax, [esi + 0x138]
push eax
call fcn.004b926d
pop ecx
pop ecx
xor eax, eax
push eax
push dword [ebp - 0x128]
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x4b9525
mov eax, 0x200
jmp 0x4b95cf
push dword [esi]
call fcn.004b8aff
mov edi, 0x4000
lea eax, [ebp - 0x4230]
push edi
push eax
push dword [esi]
xor bl, bl
call fcn.004b8bec
add esp, 0x10
test eax, eax
jl 0x4b957a
je 0x4b957c
lea ecx, [ebp + 8]
push 0
push ecx
push eax
lea eax, [ebp - 0x4230]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b957a
lea eax, [ebp - 0x4230]
push edi
push eax
push dword [esi]
call fcn.004b8bec
add esp, 0xc
jmp 0x4b9545
mov bl, 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x4b95ac
test bl, bl
jne 0x4b95ac
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x4b95bb
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.004b8d59
neg bl
sbb ebx, ebx
pop ecx
and ebx, 0x400
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10