Function at 0x41ba10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b29f8
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4d84d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call fcn.004182a0
mov dword [ebp - 0xa8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00418330
add esp, 8
movzx edx, al
test edx, edx
je 0x41ba79
lea eax, [ebp + 8]
push eax
call fcn.0041b980
add esp, 4
jmp 0x41bd5c
mov ecx, dword [ebp - 0x14]
call fcn.0041c7d0
test eax, eax
je 0x41babd
mov ecx, dword [ebp - 0x14]
call fcn.0041c7d0
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.004182c0
cmp esi, eax
jae 0x41babd
lea eax, [ebp + 8]
push eax
call fcn.0041da80
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x14]
call fcn.00417040
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x41bd5c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x50], 0
jne 0x41bad0
call fcn.004182a0
jmp 0x41bd5c
mov ecx, dword [ebp - 0x14]
call fcn.00417230
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x40], 0
jne 0x41bb2d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.0041da80
add esp, 4
movzx eax, al
push eax
call fcn.0040e070
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41bb12
mov edx, dword [ebp + 8]
mov dword [ebp - 0xac], edx
jmp 0x41bb1d
call fcn.004182a0
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
jmp 0x41bd5c
mov dword [ebp - 0x18], 8
lea eax, [ebp + 8]
push eax
call fcn.0041da80
add esp, 4
mov byte [ebp - 0x1a], al
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00409a70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00409f80
mov ecx, eax
call fcn.0041fb70
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00407860
add esi, eax
push esi
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00409f80
mov ecx, eax
call fcn.0041fb70
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x19]
push ecx
lea edx, [ebp - 0x1a]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x48
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x40]
call fcn.0041b9d0
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jl 0x41bd26
cmp dword [ebp - 0xac], 1
jle 0x41bbe0
cmp dword [ebp - 0xac], 3
je 0x41bcd2
jmp 0x41bd26
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00409f80
mov ecx, eax
call fcn.0041fb70
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x40], ecx
je 0x41bc56
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00409f80
mov ecx, eax
call fcn.0041fb70
push eax
call fcn.004939d5
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x41bc56
call fcn.004182a0
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004048f0
mov eax, dword [ebp - 0x94]
jmp 0x41bd5c
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x45], 1
lea eax, [ebp - 0x1a]
cmp dword [ebp - 0x20], eax
je 0x41bc88
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004048f0
mov eax, dword [ebp - 0x90]
jmp 0x41bd5c
cmp dword [ebp - 0x40], 0
jbe 0x41bc90
jmp 0x41bcd0
lea ecx, [ebp - 0x3c]
call fcn.00407860
cmp eax, 0x20
jae 0x41bcab
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00409280
jmp 0x41bcd0
call fcn.004182a0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004048f0
mov eax, dword [ebp - 0x8c]
jmp 0x41bd5c
jmp 0x41bd48
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
movzx edx, byte [ebp - 0x1a]
push edx
call fcn.0040e070
add esp, 8
movzx eax, al
test eax, eax
je 0x41bcf8
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xac], ecx
jmp 0x41bd03
call fcn.004182a0
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x88], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004048f0
mov eax, dword [ebp - 0x88]
jmp 0x41bd5c
call fcn.004182a0
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004048f0
mov eax, dword [ebp - 0x84]
jmp 0x41bd5c
jmp 0x41bb56
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.004909b2
mov esp, ebp
pop ebp
ret 4