Function at 0x41e160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471238
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x493120]
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
cmp dword [ecx + 0x3c], 0
mov dword [ebp - 0x30], ecx
je 0x41e42d
cmp byte [ecx + 0x41], 0
je 0x41e42d
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x41e421
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 8
cmp ecx, 0x10
jae 0x41e1d7
lea eax, [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
jmp 0x41e1f0
cmp edx, 0x10
jb 0x41e2ea
mov ebx, eax
mov dword [ebp - 0x34], ebx
test eax, eax
je 0x41e223
mov ecx, eax
cmp edx, 0x10
jae 0x41e20c
lea ecx, [ebp - 0x28]
cmp ecx, ebx
ja 0x41e223
mov ecx, eax
cmp edx, 0x10
jae 0x41e21a
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
add ecx, esi
cmp ebx, ecx
jbe 0x41e22e
call fcn.0044fe08
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffc
je 0x41e254
mov ecx, eax
cmp edx, 0x10
jae 0x41e240
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
add ecx, esi
cmp ebx, ecx
jb 0x41e254
call fcn.0044fe08
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x41e2f5
mov esi, eax
test eax, eax
je 0x41e28a
mov ecx, eax
cmp edx, 0x10
jae 0x41e270
lea ecx, [ebp - 0x28]
cmp ecx, esi
ja 0x41e28a
mov ecx, eax
cmp edx, 0x10
jae 0x41e27e
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
add ecx, ebx
mov ebx, dword [ebp - 0x34]
cmp esi, ecx
jbe 0x41e295
call fcn.0044fe08
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffc
je 0x41e2b3
cmp edx, 0x10
jae 0x41e2a5
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add eax, edx
cmp esi, eax
jb 0x41e2b3
call fcn.0044fe08
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x41e2fd
sub eax, 1
je 0x41e304
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x41e41c
jmp 0x41e428
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x34], ebx
jmp 0x41e202
lea esi, [ebp - 0x28]
jmp 0x41e266
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x41], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x41e409
mov esi, eax
test eax, eax
je 0x41e33a
mov ecx, eax
cmp edx, 0x10
jae 0x41e323
lea ecx, [ebp - 0x28]
cmp ecx, esi
ja 0x41e33a
mov ecx, eax
cmp edx, 0x10
jae 0x41e331
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add ecx, edi
cmp esi, ecx
jbe 0x41e345
call fcn.0044fe08
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffc
je 0x41e36b
mov ecx, eax
cmp edx, 0x10
jae 0x41e357
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add ecx, edi
cmp esi, ecx
jb 0x41e36b
call fcn.0044fe08
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x38]
sub edi, esi
je 0x41e3e8
cmp edx, 0x10
jb 0x41e411
mov esi, eax
test eax, eax
je 0x41e3a2
mov ecx, eax
cmp edx, 0x10
jae 0x41e38b
lea ecx, [ebp - 0x28]
cmp ecx, esi
ja 0x41e3a2
mov ecx, eax
cmp edx, 0x10
jae 0x41e399
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
add ecx, ebx
cmp esi, ecx
jbe 0x41e3ad
call fcn.0044fe08
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffc
je 0x41e3cb
cmp edx, 0x10
jae 0x41e3bd
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add eax, edx
cmp esi, eax
jb 0x41e3cb
call fcn.0044fe08
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.00451c55
add esp, 0x10
cmp edi, eax
jne 0x41e419
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp byte [ecx + 0x41], 0
je 0x41e425
test edi, edi
jne 0x41e1f0
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004034c0
jmp 0x41e1e2
lea esi, [ebp - 0x28]
jmp 0x41e319
lea esi, [ebp - 0x28]
jmp 0x41e381
lea ecx, [ebp - 0x2c]
call fcn.00402fb0
xor al, al
jmp 0x41e42f
lea ecx, [ebp - 0x2c]
call fcn.00402fb0
mov al, 1
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.0044fc9c
mov esp, ebp
pop ebp
ret