Function at 0x4bebf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xe4], ecx
mov eax, dword [ebp - 0xe4]
cmp dword [eax + 0x20c], 0
jle 0x4bec1f
xor eax, eax
jmp 0x4bf009
lea ecx, [ebp - 0x30]
call fcn.004524b0
push 0
mov ecx, dword [ebp - 0xe4]
add ecx, 4
push ecx
call fcn.004508e0
add esp, 8
mov dword [ebp - 0x38], eax
push ecx
mov ecx, esp
mov edx, dword [ebp - 0x38]
push edx
call fcn.0041c8a0
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x30]
call fcn.00452520
mov ecx, dword [ebp - 0x38]
push ecx
call dword [0x5772fc]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0xffffffff
je 0x4bec9d
mov edx, dword [ebp - 0xb8]
and edx, 1
je 0x4bec9d
mov eax, dword [ebp - 0xb8]
and eax, 0xfffffffe
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [0x57725c]
cmp dword [ebp - 0x38], 0
je 0x4becc2
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.0053e96b
add esp, 4
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0xb0]
call fcn.0041cb20
push eax
call dword [0x5774d8]
test eax, eax
jne 0x4becef
push ecx
mov ecx, esp
lea edx, [ebp - 0xb0]
push edx
call fcn.0041c880
lea ecx, [ebp - 0x30]
call fcn.004674a0
mov dword [ebp - 0x40], 0
push ecx
mov ecx, esp
lea eax, [ebp - 0xb0]
push eax
call fcn.0041c880
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004bf020
push 0
lea ecx, [ebp - 0xac]
call fcn.0041cb20
push eax
call fcn.00443160
add esp, 8
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xa8]
call fcn.00414a10
lea edx, [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x210]
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x210]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x40]
call eax
lea ecx, [ebp - 0xa8]
call fcn.004bf0a0
mov dword [ebp - 0x14], eax
push 0xfde9
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004508e0
add esp, 8
push eax
lea ecx, [ebp - 0x3c]
call fcn.004bf2c0
lea ecx, [ebp - 0x3c]
call fcn.004bf320
push eax
call fcn.0053f78e
add esp, 4
lea edx, [eax + eax + 4]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004f4318
add esp, 4
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004b3360
mov edx, dword [ebp - 0x34]
push edx
push 0
lea ecx, [ebp - 0x18]
call fcn.004b33c0
push eax
call fcn.0053ef70
add esp, 0xc
mov eax, 0xfeff
mov word [ebp - 0x10], ax
push 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x18]
call fcn.004b33c0
push eax
call fcn.00543f47
add esp, 0x10
mov eax, dword [ebp - 0x34]
sub eax, 2
push eax
lea ecx, [ebp - 0x3c]
call fcn.004bf320
push eax
mov ecx, dword [ebp - 0x34]
sub ecx, 2
push ecx
lea ecx, [ebp - 0x18]
call fcn.004b33c0
add eax, 2
push eax
call fcn.00543f47
add esp, 0x10
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xb4]
call fcn.004b3360
mov edx, dword [ebp - 0xe4]
cmp dword [edx + 0x22c], 0
je 0x4bee7e
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004b33c0
push eax
mov edx, dword [ebp - 0xe4]
add edx, 0x230
push edx
call fcn.004bf0c0
add esp, 0x10
push eax
lea ecx, [ebp - 0xb4]
call fcn.004bf260
jmp 0x4beecd
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004f4318
add esp, 4
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd4]
push edx
lea ecx, [ebp - 0xb4]
call fcn.004bf260
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.004b33c0
push eax
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004b33c0
push eax
call fcn.00543f47
add esp, 0x10
mov dword [ebp - 8], 0
push 0x59355c
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
call fcn.0053ea49
add esp, 0xc
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4bef87
cmp dword [ebp - 8], 0
je 0x4bef87
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0xc]
push edx
lea ecx, [ebp - 0xb4]
call fcn.004b33c0
push eax
call fcn.0053f714
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.0053eef9
add esp, 4
mov dword [ebp - 0xbc], 0
jmp 0x4bef45
mov ecx, dword [ebp - 0xbc]
add ecx, 1
mov dword [ebp - 0xbc], ecx
cmp dword [ebp - 0xbc], 0xa
jge 0x4bef70
mov edx, dword [ebp - 0xe4]
add edx, 4
push ecx
mov ecx, esp
push edx
call fcn.004a5360
call fcn.00450960
add esp, 4
test eax, eax
je 0x4bef6e
jmp 0x4bef70
jmp 0x4bef36
mov eax, dword [ebp - 0xe4]
add eax, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [0x577198]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 4]
push edx
call dword [0x577194]
cmp dword [ebp - 4], 0
je 0x4befb6
mov eax, dword [ebp - 4]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.0053e96b
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0xe0], edx
lea ecx, [ebp - 0xb4]
call fcn.004b3380
lea ecx, [ebp - 0x18]
call fcn.004b3380
lea ecx, [ebp - 0x3c]
call fcn.004bf2e0
lea ecx, [ebp - 0xa8]
call fcn.00414be0
lea ecx, [ebp - 0xac]
call fcn.0040f740
lea ecx, [ebp - 0xb0]
call fcn.0040f740
lea ecx, [ebp - 0x30]
call fcn.004524d0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.0053ea90
mov esp, ebp
pop ebp
ret