Function at 0x4b3c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
cmp edi, 3
mov ebx, ecx
je 0x4b3ca6
cmp edi, 2
je 0x4b3d85
cmp edi, 1
je 0x4b3d85
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x4b3d16
cmp eax, 0xffffffff
je 0x4b3cc0
mov eax, dword [ebx]
push eax
call fcn.004b3380
add esp, 4
mov eax, dword [ebx]
mov dword [ebx + 4], 0xffffffff
cmp esi, dword [eax + 4]
jl 0x4b3cdc
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp esi, dword [eax + 0x10]
jge 0x4b3cea
push eax
call fcn.004b2c80
add esp, 4
mov eax, dword [ebx]
cmp dword [eax + 0x10], esi
jge 0x4b3d01
push eax
call fcn.004b2cd0
mov eax, dword [ebx]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x4b3cf1
mov ecx, dword [ebx + 0x138]
mov edx, dword [ebx]
push ecx
push edx
call fcn.004b2f30
add esp, 8
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0xb]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
call fcn.004b30d0
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x4b3d45
mov ecx, dword [ebx]
push ecx
call fcn.004b3380
add esp, 4
mov dword [ebx + 4], 0xffffffff
mov al, byte [ebp + 0xb]
test al, al
je 0x4b3d57
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
jle 0x4b3d69
pop edi
pop esi
mov eax, 0x600
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, esi
pop edi
sub eax, 0xffffff96
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 0x4fff000
add eax, 0x1000
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 4]
or esi, 0xffffffff
cmp eax, esi
je 0x4b3d9a
mov edx, dword [ebx]
push edx
call fcn.004b3380
add esp, 4
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov esi, dword [ebp + 8]
cmp esi, dword [eax + 4]
jl 0x4b3db5
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp esi, dword [eax + 0x10]
jge 0x4b3dc3
push eax
call fcn.004b2c80
add esp, 4
mov eax, dword [ebx]
cmp dword [eax + 0x10], esi
jge 0x4b3dda
push eax
call fcn.004b2cd0
mov eax, dword [ebx]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x4b3dca
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
push esi
call fcn.004b3640
test byte [ebp - 0x128], 0x10
je 0x4b3e4a
cmp edi, 1
jne 0x4b3e02
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
cmp al, 0x2f
je 0x4b3e19
cmp al, 0x5c
je 0x4b3e19
test al, al
je 0x4b3e2f
cmp byte [ecx + 1], 0x3a
jne 0x4b3e2f
push ecx
push 0
call fcn.004b3b60
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
add ebx, 0x140
push ecx
push ebx
call fcn.004b3b60
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 1
jne 0x4b3e57
mov edi, dword [ebp + 0xc]
jmp 0x4b3f06
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], edx
mov esi, edx
mov al, byte [edx]
test al, al
je 0x4b3e7b
cmp al, 0x2f
je 0x4b3e6d
cmp al, 0x5c
jne 0x4b3e73
lea ecx, [esi + 1]
mov dword [ebp + 0xc], ecx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4b3e65
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp + 8], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
cmp eax, edx
rep movsb byte es:[edi], byte [esi]
jne 0x4b3f19
mov byte [ebp - 0x104], 0
lea edx, [ebp - 0x104]
lea esi, [ebx + 0x140]
push eax
push edx
push esi
lea eax, [ebp - 0x334]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x104]
push ecx
push esi
call fcn.004b3b60
add esp, 0x1c
mov edx, dword [ebp - 0x128]
push 0
push edx
push 2
push 0
push 0
lea eax, [ebp - 0x334]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b3f7a
pop edi
pop esi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
sub ecx, edx
mov byte [ebp + ecx - 0x104], 0
mov cl, byte [ebp - 0x104]
cmp cl, 0x2f
je 0x4b3f4a
cmp cl, 0x5c
je 0x4b3f4a
test cl, cl
je 0x4b3eb2
cmp byte [ebp - 0x103], 0x3a
jne 0x4b3eb2
lea edx, [ebp - 0x104]
push eax
push edx
lea eax, [ebp - 0x334]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x104]
push ecx
push 0
call fcn.004b3b60
add esp, 0x18
jmp 0x4b3ee3
mov ecx, dword [ebx + 0x138]
mov edx, dword [ebx]
push ecx
push edx
call fcn.004b2f30
mov eax, dword [ebx + 0x13c]
add esp, 8
test eax, eax
jne 0x4b3fa9
push 0x4000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 0x13c], eax
mov dword [ebp + 8], 0
mov ecx, dword [ebx + 0x13c]
mov edx, dword [ebx]
lea eax, [ebp + 0xf]
push eax
push 0x4000
push ecx
push edx
call fcn.004b30d0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x4b3ffe
test esi, esi
jl 0x4b4010
jle 0x4b3ff1
mov ecx, dword [ebx + 0x13c]
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b4007
mov al, byte [ebp + 0xf]
test al, al
jne 0x4b4019
test esi, esi
je 0x4b4010
jmp 0x4b3fb0
mov dword [ebp + 8], 0x1000
jmp 0x4b4035
mov dword [ebp + 8], 0x400
jmp 0x4b4035
mov dword [ebp + 8], 0x5000000
jmp 0x4b4035
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x11c]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x4b4042
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx]
push edx
call fcn.004b3380
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10