Function at 0x4e3c30
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4338
call fcn.0044e920
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x4358]
mov ebp, ecx
cmp edi, 3
je 0x4e3c70
cmp edi, 2
je 0x4e3d67
cmp edi, 1
je 0x4e3d67
pop edi
pop esi
pop ebp
mov eax, 0x10000
pop ebx
add esp, 0x4338
ret 0x10
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x434c]
cmp esi, eax
je 0x4e3ced
cmp eax, 0xffffffff
je 0x4e3c8f
mov eax, dword [ebp]
push eax
call fcn.004e32a0
add esp, 4
mov eax, dword [ebp]
mov dword [ebp + 4], 0xffffffff
cmp esi, dword [eax + 4]
jl 0x4e3cb0
pop edi
pop esi
pop ebp
mov eax, 0x10000
pop ebx
add esp, 0x4338
ret 0x10
cmp esi, dword [eax + 0x10]
jge 0x4e3cbe
push eax
call fcn.004e29d0
add esp, 4
mov eax, dword [ebp]
cmp dword [eax + 0x10], esi
jge 0x4e3cd7
push eax
call fcn.004e2a20
mov eax, dword [ebp]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x4e3cc6
mov ecx, dword [ebp + 0x138]
mov edx, dword [ebp]
push ecx
push edx
call fcn.004e2d90
add esp, 8
mov dword [ebp + 4], esi
mov eax, dword [esp + 0x4354]
mov ecx, dword [esp + 0x4350]
mov edx, dword [ebp]
push eax
push ecx
push edx
call fcn.004e2f40
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4e3d21
pop edi
pop esi
pop ebp
mov eax, 0x600
pop ebx
add esp, 0x4338
ret 0x10
mov eax, dword [ebp]
push eax
call fcn.004e32a0
add esp, 4
mov dword [ebp + 4], 0xffffffff
test esi, esi
jne 0x4e3d47
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4338
ret 0x10
mov eax, esi
pop edi
sub eax, 0xffffff96
pop esi
neg eax
sbb eax, eax
pop ebp
and eax, 0x4fff000
pop ebx
add eax, 0x1000
add esp, 0x4338
ret 0x10
mov eax, dword [ebp + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4e3d7d
mov ecx, dword [ebp]
push ecx
call fcn.004e32a0
add esp, 4
mov eax, dword [ebp]
mov esi, dword [esp + 0x434c]
mov dword [ebp + 4], ebx
cmp esi, dword [eax + 4]
jl 0x4e3da1
pop edi
pop esi
pop ebp
mov eax, 0x10000
pop ebx
add esp, 0x4338
ret 0x10
cmp esi, dword [eax + 0x10]
jge 0x4e3daf
push eax
call fcn.004e29d0
add esp, 4
mov eax, dword [ebp]
cmp dword [eax + 0x10], esi
jge 0x4e3dc8
push eax
call fcn.004e2a20
mov eax, dword [ebp]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x4e3db7
lea edx, [esp + 0x21c]
mov ecx, ebp
push edx
push esi
call fcn.004e35e0
test byte [esp + 0x324], 0x10
je 0x4e3e1c
cmp edi, 1
jne 0x4e3df6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4338
ret 0x10
lea eax, [esp + 0x220]
add ebp, 0x13c
push eax
push ebp
call fcn.004e3b50
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4338
ret 0x10
cmp edi, 1
jne 0x4e3e2d
mov esi, dword [esp + 0x4350]
jmp 0x4e3f84
lea edi, [ebp + 0x13c]
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x4350]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x14]
test al, al
je 0x4e3f62
cmp al, 0x2f
je 0x4e3e9d
cmp al, 0x5c
jne 0x4e3ea0
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4e3e95
lea eax, [esp + 0x14]
cmp edx, eax
je 0x4e3f62
lea edi, [esp + 0x14]
mov ecx, ebx
xor eax, eax
lea esi, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
sub edx, ecx
mov byte [esp + edx + 0x117], 0
mov al, byte [esp + 0x118]
test al, al
je 0x4e3f10
cmp al, 0x2f
je 0x4e3f10
cmp al, 0x5c
je 0x4e3f10
cmp byte [esp + 0x119], 0x3a
je 0x4e3f10
xor bl, bl
jmp 0x4e3f12
mov bl, 1
mov esi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x118]
push 0x6283ac
push edx
call esi
mov edi, eax
lea eax, [esp + 0x120]
push 0x621cdc
push eax
call esi
add esp, 0x10
test eax, eax
setne cl
test edi, edi
setne dl
or cl, dl
or cl, bl
jne 0x4e3f62
lea eax, [esp + 0x118]
push eax
lea eax, [ebp + 0x13c]
push eax
call fcn.004e3b50
add esp, 8
mov ecx, dword [esp + 0x324]
push 0
push ecx
push 2
push 0
push 0
lea edx, [esp + 0x28]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e3f9b
pop edi
pop esi
pop ebp
mov eax, 0x200
pop ebx
add esp, 0x4338
ret 0x10
mov eax, dword [ebp + 0x138]
mov ecx, dword [ebp]
push eax
push ecx
call fcn.004e2d90
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
xor ebx, ebx
mov eax, dword [ebp]
lea edx, [esp + 0x348]
push 0x4000
push edx
push eax
call fcn.004e2f40
add esp, 0xc
cmp eax, 0xffffff96
je 0x4e3ff3
test eax, eax
jl 0x4e3ffa
je 0x4e4008
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x350]
push eax
push edx
push esi
call edi
test eax, eax
je 0x4e4001
jmp 0x4e3fb6
mov ebx, 0x1000
jmp 0x4e4027
mov ebx, 0x5000000
jmp 0x4e4027
mov ebx, 0x400
jmp 0x4e4027
lea eax, [esp + 0x338]
lea ecx, [esp + 0x328]
push eax
lea edx, [esp + 0x334]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [esp + 0x4358], 1
je 0x4e4038
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp]
push eax
call fcn.004e32a0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4338
ret 0x10