Function at 0x4e63d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x514
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
push edi
je 0x4e6629
mov eax, dword [0x63aae8]
test eax, eax
je 0x4e6409
push 0xf
push esi
call fcn.00551b90
mov al, byte [esi]
add esp, 8
test al, al
je 0x4e6629
push 0x1a
push esi
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x4e642a
push 0x1a
push esi
mov byte [eax], 0x20
call fcn.005cbf10
add esp, 8
test eax, eax
jne 0x4e6418
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x6b4], 0xffffffff
jne 0x4e6471
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebx + 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x6b4], eax
je 0x4e6629
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x30]
push 0x4eb
push ecx
call fcn.00423a00
mov eax, dword [0x609c40]
add esp, 8
test eax, eax
je 0x4e64e8
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4e64e8
lea edx, [esp + 0x30]
push 3
push edx
call fcn.0055c730
mov eax, dword [0x63aae8]
add esp, 8
test eax, eax
je 0x4e64ba
lea eax, [esp + 0x30]
push 0xf
push eax
call fcn.00551b90
add esp, 8
lea ecx, [esp + 0x30]
push 0x20
push ecx
call fcn.00552010
mov al, byte [esp + 0x38]
add esp, 8
test al, al
je 0x4e64e8
lea edi, [esp + 0x30]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4e64d6
mov dx, word [0x5e7420]
mov word [edi], dx
mov eax, esi
mov edx, esi
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e64f0
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4e6500
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4e6520
mov ax, word [0x5e6c94]
mov cl, byte [0x5e6c96]
mov word [edi], ax
mov eax, dword [0x609c4c]
test eax, eax
mov byte [edi + 2], cl
je 0x4e65df
mov esi, dword [ebp + 0x14]
cmp esi, dword [0x6136a4]
je 0x4e65df
lea edx, [esp + 0x14]
push 0x19
push edx
call fcn.00423a00
push esi
call fcn.0043bf80
push eax
push 3
lea eax, [esp + 0x28]
push str._c_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x4c]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e6585
sub eax, edx
mov edx, eax
lea eax, [esp + 0x14]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e6597
sub eax, esi
inc edx
push edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + eax + 0x38]
push edx
call fcn.005cceb0
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x4e65c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e65c0
sub eax, edx
mov ecx, eax
shr ecx, 2
lea esi, [esp + 0x14]
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e65e6
push 0
sub eax, edx
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 0x6b4]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x63aaf0], 1
jne 0x4e6629
mov ecx, dword [ebx + 0x6b4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x6b4], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret