Function at 0x4b5310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e04b
mov eax, dword fs:[0]
push eax
sub esp, 0x200
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x20c]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x5ddc34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x144], 0
call fcn.00401555
mov dword [ebp - 0x1f4], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1f4]
push ecx
call fcn.0040148d
add esp, 8
movzx edx, al
test edx, edx
je 0x4b5397
lea eax, [ebp + 8]
push eax
call fcn.004014e2
add esp, 4
jmp 0x4b577f
mov ecx, dword [ebp - 0x18]
call fcn.00401c12
test eax, eax
je 0x4b53db
mov ecx, dword [ebp - 0x18]
call fcn.00401c12
mov esi, eax
mov ecx, dword [ebp - 0x18]
call fcn.00401113
cmp esi, eax
jae 0x4b53db
lea eax, [ebp + 8]
push eax
call fcn.004015b4
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x18]
call fcn.004011ef
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x4b577f
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x50], 0
jne 0x4b53ee
call fcn.00401555
jmp 0x4b577f
mov ecx, dword [ebp - 0x18]
call fcn.00401c17
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x40], 0
jne 0x4b544b
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.004015b4
add esp, 4
movzx eax, al
push eax
call fcn.00401055
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4b5430
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1fc], edx
jmp 0x4b543b
call fcn.00401555
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
jmp 0x4b577f
mov dword [ebp - 0x24], 8
lea eax, [ebp + 8]
push eax
call fcn.004015b4
add esp, 4
mov byte [ebp - 0x2d], al
push 0
push 8
lea ecx, [ebp - 0x6c]
call fcn.00401aa5
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1dc]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00401537
mov dword [ebp - 0x1fc], eax
mov edx, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x200]
call fcn.00401785
mov esi, eax
lea ecx, [ebp - 0x6c]
call fcn.00401a87
add esi, eax
push esi
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401537
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
mov dword [ebp - 0x208], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x208]
call fcn.00401785
push eax
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x2d]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x48
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x40]
call fcn.00401aaa
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c8]
call fcn.0040137a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.0040137a
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x20c], ecx
cmp dword [ebp - 0x20c], 0
jl 0x4b5749
cmp dword [ebp - 0x20c], 1
jle 0x4b555c
cmp dword [ebp - 0x20c], 3
je 0x4b56f5
jmp 0x4b5749
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401537
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x200]
call fcn.00401785
mov edx, dword [ebp - 0x48]
sub edx, eax
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b4]
call fcn.0040137a
cmp dword [ebp - 0x78], 0
jbe 0x4b560f
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x78]
push edx
push 1
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401537
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x144]
or edx, 1
mov dword [ebp - 0x144], edx
mov ecx, dword [ebp - 0x200]
call fcn.00401785
push eax
call fcn.004fb5b0
add esp, 0x10
cmp dword [ebp - 0x78], eax
je 0x4b560f
mov dword [ebp - 0x204], 1
jmp 0x4b5619
mov dword [ebp - 0x204], 0
mov al, byte [ebp - 0x204]
mov byte [ebp - 0x19d], al
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x144]
and ecx, 1
je 0x4b5649
and dword [ebp - 0x144], 0xfffffffe
lea ecx, [ebp - 0x194]
call fcn.0040137a
movzx edx, byte [ebp - 0x19d]
test edx, edx
je 0x4b5679
call fcn.00401555
mov dword [ebp - 0x180], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401a41
mov eax, dword [ebp - 0x180]
jmp 0x4b577f
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x45], 1
lea eax, [ebp - 0x2d]
cmp dword [ebp - 0x3c], eax
je 0x4b56ab
mov eax, dword [ebp + 8]
mov dword [ebp - 0x174], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401a41
mov eax, dword [ebp - 0x174]
jmp 0x4b577f
cmp dword [ebp - 0x78], 0
jbe 0x4b56b3
jmp 0x4b56f3
lea ecx, [ebp - 0x6c]
call fcn.00401a87
cmp eax, 0x20
jae 0x4b56ce
push 0
push 8
lea ecx, [ebp - 0x6c]
call fcn.00401ae6
jmp 0x4b56f3
call fcn.00401555
mov dword [ebp - 0x168], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401a41
mov eax, dword [ebp - 0x168]
jmp 0x4b577f
jmp 0x4b576b
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
push ecx
movzx edx, byte [ebp - 0x2d]
push edx
call fcn.00401055
add esp, 8
movzx eax, al
test eax, eax
je 0x4b571b
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1fc], ecx
jmp 0x4b5726
call fcn.00401555
mov dword [ebp - 0x1fc], eax
mov edx, dword [ebp - 0x1fc]
mov dword [ebp - 0x15c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401a41
mov eax, dword [ebp - 0x15c]
jmp 0x4b577f
call fcn.00401555
mov dword [ebp - 0x150], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401a41
mov eax, dword [ebp - 0x150]
jmp 0x4b577f
jmp 0x4b5474
push edx
mov ecx, ebp
push eax
lea edx, [0x4b57bc]
call fcn.004f4c90
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4d70
add esp, 0x20c
cmp ebp, esp
call fcn.004f4cf0
mov esp, ebp
pop ebp
ret 4