Function at 0x41df70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c1e8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
mov edx, ecx
mov dword [esp + 0x18], edx
jne 0x41dfbc
xor eax, eax
jmp 0x41e2a5
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x41dfe6
mov eax, dword [edx + 0x34]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x41dfe6
add dword [eax], 0xffffffff
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
mov eax, ebx
jmp 0x41e2a5
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x41e2a2
cmp dword [edx + 0x3c], 0
jne 0x41e014
push eax
movsx eax, bl
push eax
call fcn.004e99e7
add esp, 8
cmp eax, 0xffffffff
je 0x41e2a2
mov eax, ebx
jmp 0x41e2a5
mov ecx, 0xf
xor eax, eax
cmp ecx, 0x10
mov byte [esp + 0x38], 0
mov byte [esp + 0x13], bl
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], 8
jae 0x41e041
lea eax, [esp + 0x38]
mov byte [eax + 8], 0
mov dword [esp + 0x60], 0
mov edi, dword [esp + 0x4c]
cmp edi, 0x10
mov eax, dword [esp + 0x38]
jb 0x41e193
test eax, eax
mov esi, eax
mov dword [esp + 0x14], esi
je 0x41e08c
cmp edi, 0x10
mov ecx, eax
jae 0x41e073
lea ecx, [esp + 0x38]
cmp ecx, esi
ja 0x41e08c
cmp edi, 0x10
mov ecx, eax
jae 0x41e082
lea ecx, [esp + 0x38]
mov edx, dword [esp + 0x48]
add ecx, edx
cmp esi, ecx
jbe 0x41e09d
call fcn.004e89bf
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x34]
cmp ecx, 0xfffffffe
je 0x41e0c8
cmp edi, 0x10
mov ecx, eax
jae 0x41e0b1
lea ecx, [esp + 0x38]
add ecx, edx
cmp esi, ecx
jb 0x41e0c8
call fcn.004e89bf
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
cmp edi, 0x10
mov ebx, edx
jb 0x41e1a2
test eax, eax
mov esi, eax
je 0x41e0f9
cmp edi, 0x10
mov ecx, eax
jae 0x41e0e4
lea ecx, [esp + 0x38]
cmp ecx, esi
ja 0x41e0f9
cmp edi, 0x10
mov ecx, eax
jae 0x41e0f3
lea ecx, [esp + 0x38]
add ecx, edx
cmp esi, ecx
jbe 0x41e10a
call fcn.004e89bf
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x34]
cmp ecx, 0xfffffffe
je 0x41e127
cmp edi, 0x10
jae 0x41e11c
lea eax, [esp + 0x38]
add eax, edx
cmp esi, eax
jb 0x41e127
call fcn.004e89bf
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
add eax, ebx
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [edi + 0x44]
push eax
call edx
test eax, eax
jl 0x41e299
cmp eax, 1
jg 0x41e256
lea eax, [esp + 0x24]
push eax
lea edi, [esp + 0x38]
call fcn.0041ceb0
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffe
je 0x41e1bd
test eax, eax
jne 0x41e186
call fcn.004e89bf
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x41e1ab
mov ecx, dword [eax + 4]
jmp 0x41e1ae
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], ecx
mov esi, ecx
jmp 0x41e068
lea esi, [esp + 0x38]
jmp 0x41e0d9
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x41e1bd
call fcn.004e89bf
mov ebx, dword [esp + 0x1c]
sub ebx, dword [esi + 4]
je 0x41e220
lea eax, [esp + 0x2c]
push eax
lea edi, [esp + 0x38]
call fcn.0041ceb0
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffe
je 0x41e205
test eax, eax
jne 0x41e1e6
call fcn.004e89bf
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x41e1f3
mov ecx, dword [eax + 4]
jmp 0x41e1f6
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x41e205
call fcn.004e89bf
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x4c]
mov esi, dword [esi + 4]
push ecx
push ebx
push 1
push esi
call fcn.004ea416
add esp, 0x10
cmp ebx, eax
jne 0x41e299
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x13]
cmp dword [esp + 0x20], eax
mov byte [edx + 0x41], 1
jne 0x41e28b
test ebx, ebx
ja 0x41e04d
cmp dword [esp + 0x48], 0x20
jae 0x41e299
push 0
mov eax, 8
lea edi, [esp + 0x38]
call fcn.0041ce10
jmp 0x41e04d
cmp eax, 3
jne 0x41e299
mov eax, dword [edi + 0x4c]
mov cl, byte [esp + 0x13]
call fcn.0040c4a0
test al, al
je 0x41e27b
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x34]
call fcn.00406a90
mov eax, esi
jmp 0x41e2a5
lea ecx, [esp + 0x34]
or esi, 0xffffffff
call fcn.00406a90
mov eax, esi
jmp 0x41e2a5
lea ecx, [esp + 0x34]
call fcn.00406a90
mov eax, dword [ebp + 8]
jmp 0x41e2a5
lea ecx, [esp + 0x34]
call fcn.00406a90
or eax, 0xffffffff
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 4