Function at 0x401fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54f978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x34
call fcn.00525ec0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, ecx
push edi
mov dword [esp + 0x10], edx
cmp ebx, 0xffffffff
jne 0x40202d
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
xor esi, esi
cmp ecx, esi
je 0x402067
mov eax, dword [edx + 0x34]
mov edi, dword [eax]
add edi, ecx
cmp ecx, edi
jae 0x402067
dec dword [eax]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
mov eax, ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x4c]
cmp eax, esi
je 0x4023f4
cmp dword [edx + 0x3c], esi
jne 0x4020a3
push eax
movsx eax, bl
push eax
call fcn.00510776
add esp, 8
cmp eax, 0xffffffff
je 0x4023f4
mov eax, ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0xf
mov dword [esp + 0x3c], eax
mov byte [esp + 0x28], 0
pxor xmm0, xmm0
mov dword [esp + 0x38], esi
movq qword [esp + 0x28], xmm0
cmp eax, 0x10
mov eax, dword [esp + 0x28]
mov byte [esp + 0x14], bl
mov dword [esp + 0x38], 8
jae 0x4020d8
lea eax, [esp + 0x28]
mov byte [eax + 8], 0
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
jmp 0x4020f0
cmp edx, 0x10
jb 0x402346
mov ebx, eax
mov dword [esp + 0x18], ebx
test eax, eax
je 0x402127
mov ecx, eax
cmp edx, 0x10
jae 0x40210e
lea ecx, [esp + 0x28]
cmp ecx, ebx
ja 0x402127
mov ecx, eax
cmp edx, 0x10
jae 0x40211d
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jbe 0x402134
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x40215f
mov ecx, eax
cmp edx, 0x10
jae 0x402148
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x38]
add ecx, esi
cmp ebx, ecx
jb 0x40215f
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
cmp edx, 0x10
jb 0x402353
mov esi, eax
test eax, eax
je 0x40219a
mov ecx, eax
cmp edx, 0x10
jae 0x40217d
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x40219a
mov ecx, eax
cmp edx, 0x10
jae 0x40218c
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
mov ebx, dword [esp + 0x18]
cmp esi, ecx
jbe 0x4021a7
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x4021c8
cmp edx, 0x10
jae 0x4021b9
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
add eax, edx
cmp esi, eax
jb 0x4021c8
call fcn.0050dd58
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x1c]
push eax
add ebx, edi
push ebx
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x25]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
add eax, 0x44
push eax
call edx
test eax, eax
jl 0x4023e3
cmp eax, 1
jg 0x40236e
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp edx, 0x10
jb 0x40235c
mov esi, eax
test eax, eax
je 0x402242
mov ecx, eax
cmp edx, 0x10
jae 0x402229
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x402242
mov ecx, eax
cmp edx, 0x10
jae 0x402238
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jbe 0x40224f
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x40227a
mov ecx, eax
cmp edx, 0x10
jae 0x402263
lea ecx, [esp + 0x28]
mov edi, dword [esp + 0x38]
add ecx, edi
cmp esi, ecx
jb 0x40227a
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
sub edi, esi
je 0x40230b
cmp edx, 0x10
jb 0x402365
mov esi, eax
test eax, eax
je 0x4022b9
mov ecx, eax
cmp edx, 0x10
jae 0x4022a0
lea ecx, [esp + 0x28]
cmp ecx, esi
ja 0x4022b9
mov ecx, eax
cmp edx, 0x10
jae 0x4022af
lea ecx, [esp + 0x28]
mov ebx, dword [esp + 0x38]
add ecx, ebx
cmp esi, ecx
jbe 0x4022c6
call fcn.0050dd58
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x4022e7
cmp edx, 0x10
jae 0x4022d8
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
add eax, edx
cmp esi, eax
jb 0x4022e7
call fcn.0050dd58
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.0050deca
add esp, 0x10
cmp edi, eax
jne 0x4023e3
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x41], 1
lea ecx, [esp + 0x14]
cmp dword [esp + 0x20], ecx
jne 0x4023bb
test edi, edi
ja 0x4020f0
cmp dword [esp + 0x38], 0x20
jae 0x4023e3
push 0
push 8
lea ecx, [esp + 0x2c]
call fcn.00419e10
jmp 0x4020e0
lea ebx, [esp + 0x28]
mov dword [esp + 0x18], ebx
jmp 0x402103
lea esi, [esp + 0x28]
jmp 0x402172
lea esi, [esp + 0x28]
jmp 0x40221e
lea esi, [esp + 0x28]
jmp 0x402295
cmp eax, 3
jne 0x4023e3
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x4c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0040cf50
add esp, 8
test al, al
je 0x402391
mov esi, dword [ebp + 8]
jmp 0x402394
or esi, 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041ac40
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041ac40
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041ac40
mov ecx, dword [esp + 0x44]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4