Function at 0x4b5c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4108
call fcn.004fa330
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4080], eax
mov dword [ebp - 0x409c], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x40a0], ecx
test eax, eax
je 0x4b6176
mov dword [ebp - 0x40b0], eax
lea eax, [ebp - 0x4068]
push 0
push eax
mov dword [ebp - 0x40b8], 0x4b5b70
mov dword [ebp - 0x40b4], 0x4b5be0
call fcn.004b65f0
add esp, 8
mov dword [ebp - 0x407c], 0x4b90d0
lea eax, [ebp - 0x40b8]
mov dword [ebp - 0x4078], 0x4b90f0
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x40ac], 0x4b90d0
mov dword [ebp - 0x40a8], 0x4b90f0
call fcn.004b9120
lea eax, [ebp - 0x4108]
push eax
call fcn.004b6c30
lea eax, [ebp - 0x40ac]
push eax
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x4068]
push eax
lea eax, [ebp - 0x4108]
push eax
call fcn.004b6ca0
add esp, 0x14
mov dword [ebp - 0x406c], eax
test eax, eax
jne 0x4b6176
push ebx
xor ebx, ebx
mov dword [ebp - 0x4074], eax
mov dword [ebp - 0x4098], 0xffffffff
mov dword [ebp - 0x4094], eax
mov dword [ebp - 0x4070], ebx
cmp dword [ebp - 0x40ec], ebx
jbe 0x4b6136
push esi
xor ecx, ecx
mov dword [ebp - 0x408c], ecx
push edi
mov eax, dword [ebp - 0x40f8]
or esi, 0xffffffff
add eax, ecx
mov dword [ebp - 0x4088], eax
lea eax, [ebp - 0x40ac]
push eax
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x4084]
push eax
lea eax, [ebp - 0x40a4]
push eax
lea eax, [ebp - 0x4094]
push eax
lea eax, [ebp - 0x4074]
push eax
lea eax, [ebp - 0x4098]
push eax
push ebx
lea eax, [ebp - 0x4068]
push eax
lea eax, [ebp - 0x4108]
push eax
call fcn.004b6760
add esp, 0x28
mov dword [ebp - 0x406c], eax
test eax, eax
jne 0x4b612a
push eax
lea eax, [ebp - 0x4108]
push ebx
push eax
call fcn.004b6be0
mov ebx, eax
add esp, 0xc
cmp ebx, 1
jb 0x4b612a
cmp ebx, 0x7fffffff
ja 0x4b6190
lea edi, [ebx + ebx]
cmp edi, 0x1000
jb 0x4b5e60
lea eax, [edi + 0x23]
cmp eax, edi
cmovbe eax, esi
push eax
call fcn.0048e9bb
add esp, 4
test eax, eax
je 0x4b618b
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4b5e73
test edi, edi
je 0x4b5e71
push edi
call fcn.0048e9bb
add esp, 4
mov esi, eax
jmp 0x4b5e73
xor esi, esi
push edi
push 0
push esi
call fcn.004bcaf0
push esi
push dword [ebp - 0x4070]
lea eax, [ebp - 0x4108]
push eax
call fcn.004b6be0
add esp, 0x18
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x409c]
call fcn.0041a300
xor eax, eax
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
lea ecx, [ebp - 0x4c]
add edi, 0xfffffffe
mov dword [ebp - 0x38], 7
add edi, esi
mov eax, edi
sub eax, esi
sar eax, 1
push eax
call fcn.0041b910
push dword [ebp - 0x4090]
lea ecx, [ebp - 0x4c]
push edi
push esi
call fcn.004b5570
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0041a710
lea ecx, [ebp - 0x4c]
call fcn.0041a210
mov edi, dword [ebp - 0x40a0]
test edi, edi
je 0x4b5f1b
lea eax, [ebp - 0x1c]
cmp edi, eax
je 0x4b5f1b
cmp dword [ebp - 8], 8
mov ecx, edi
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.0041a5b0
mov eax, dword [ebp - 0x4088]
cmp byte [eax + 0x19], 0
lea eax, [ebp - 0x1c]
push eax
je 0x4b5f3b
mov ecx, dword [ebp - 0x4080]
call fcn.004b5ac0
jmp 0x4b6021
lea ecx, [ebp - 0x34]
call fcn.0041a300
push 0xffffffffffffffff
push 0x51f31c
lea ecx, [ebp - 0x34]
call fcn.0041a0c0
lea ecx, [ebp - 0x34]
cmp eax, 0xffffffff
jne 0x4b5f6d
push eax
push 0x51c798
call fcn.0041a0c0
cmp eax, 0xffffffff
je 0x4b5f73
lea ecx, [ebp - 0x34]
push eax
call fcn.0041a130
mov ecx, dword [ebp - 0x4080]
lea eax, [ebp - 0x34]
push eax
call fcn.004b5ac0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b611c
push 0
lea eax, [ebp - 0x4090]
push eax
push dword [ebp - 0x4084]
mov eax, dword [ebp - 0x40a4]
add eax, dword [ebp - 0x4074]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b60cd
mov eax, dword [ebp - 0x4090]
cmp eax, dword [ebp - 0x4084]
jne 0x4b60cd
mov eax, dword [ebp - 0x4088]
cmp byte [eax + 0x1c], 0
je 0x4b600a
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x4b6084
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b6099
lea ecx, [ebp - 0x34]
call fcn.0041a210
lea ecx, [ebp - 0x1c]
call fcn.0041a210
test esi, esi
je 0x4b6057
lea eax, [ebx + ebx]
cmp eax, 0x1000
jb 0x4b604d
mov ecx, dword [esi - 4]
add eax, 0x23
sub esi, ecx
add esi, 0xfffffffc
cmp esi, 0x1f
ja 0x4b618b
mov esi, ecx
push eax
push esi
call fcn.0048e9ad
add esp, 8
mov ebx, dword [ebp - 0x4070]
mov ecx, dword [ebp - 0x408c]
inc ebx
add ecx, 0x20
mov dword [ebp - 0x4070], ebx
mov dword [ebp - 0x408c], ecx
cmp ebx, dword [ebp - 0x40ec]
jae 0x4b6134
jmp 0x4b5da2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 0x406c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b60a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x406c], eax
lea ecx, [ebp - 0x34]
call fcn.0041a210
lea ecx, [ebp - 0x1c]
call fcn.0041a210
test esi, esi
je 0x4b6134
add ebx, ebx
cmp ebx, 0x1000
jb 0x4b6110
mov eax, dword [esi - 4]
add ebx, 0x23
sub esi, eax
jmp 0x4b6106
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 0x406c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
call fcn.0041a210
lea ecx, [ebp - 0x1c]
call fcn.0041a210
test esi, esi
je 0x4b6134
add ebx, ebx
cmp ebx, 0x1000
jb 0x4b6110
mov eax, dword [esi - 4]
sub esi, eax
add ebx, 0x23
add esi, 0xfffffffc
cmp esi, 0x1f
ja 0x4b618b
mov esi, eax
push ebx
push esi
call fcn.0048e9ad
add esp, 8
jmp 0x4b6134
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x406c], eax
jmp 0x4b60e0
mov dword [ebp - 0x406c], 6
pop edi
pop esi
push dword [ebp - 0x4074]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x4108]
push eax
call fcn.004b6b20
mov eax, dword [ebp - 0x406c]
add esp, 0x10
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 6
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 8
call fcn.004c5929
call fcn.0041b6e0
int3