Function at 0x406120
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x49993e
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4cb08c]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cb08c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x50]
xor ebx, ebx
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebx
call fcn.00421ab0
add esp, 4
test al, al
je 0x406263
mov dword [esp + 0x18], ebx
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0xd4], ebx
push eax
mov ebx, 0x4ab50c
call fcn.00405850
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, ebx
je 0x406263
mov edi, 0xf
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
mov byte [esp + 0xd0], 1
mov byte [esp + 0x44], bl
lea ebx, [ebx]
cmp eax, ebx
je 0x40621a
push eax
push 1
lea ecx, [esp + 0x4c]
push 1
push ecx
call fcn.004722ff
add esp, 0x10
cmp eax, ebx
je 0x406203
mov edx, dword [esp + 0x44]
push edx
push 1
lea ecx, [esp + 0x94]
call fcn.00409a80
mov eax, dword [esp + 0x18]
jmp 0x4061d0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40621a
push eax
call fcn.004726af
add esp, 4
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0xa0], ebx
jne 0x40626a
cmp dword [esp + 0xa4], 0x10
jb 0x406241
mov eax, dword [esp + 0x90]
push eax
call fcn.004716d0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
je 0x406263
push eax
call fcn.004726af
add esp, 4
xor al, al
jmp 0x406588
call fcn.0040d470
mov dword [esp + 0x4c], eax
mov byte [eax + 0x79], 1
mov eax, dword [esp + 0x4c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [eax], eax
mov eax, dword [esp + 0x4c]
mov dword [eax + 8], eax
mov dword [esp + 0x50], ebx
lea ecx, [esp + 0x48]
push ecx
lea eax, [esp + 0x90]
mov byte [esp + 0xd4], 2
call fcn.00420110
add esp, 4
mov dword [esp + 0x20], ebx
xor ebp, ebp
lea edx, [esp + 0x48]
lea ecx, [ebp + 0x4ccc48]
push edx
call fcn.004095c0
mov edi, eax
add edi, 0x28
cmp dword [edi + 8], ebx
je 0x406330
push 4
push str.name
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00402dd0
mov byte [esp + 0xd0], 3
or dword [esp + 0x1c], 1
push edi
lea ecx, [esp + 0x2c]
call fcn.004095c0
mov edx, dword [ebp + 0x4ccccc]
lea ecx, [ebp + 0x4cccbc]
add eax, 4
cmp dword [ecx + 0x14], 0x10
jb 0x406319
mov ecx, dword [ecx]
push edx
push ecx
mov ecx, dword [eax + 0x14]
push ecx
push ebx
mov ecx, eax
call fcn.004029f0
test eax, eax
mov byte [esp + 0x17], 1
je 0x406334
mov byte [esp + 0x17], bl
mov dword [esp + 0xd0], 2
test byte [esp + 0x1c], 1
je 0x40635f
and dword [esp + 0x1c], 0xfffffffe
cmp dword [esp + 0x40], 0x10
jb 0x40635f
mov edx, dword [esp + 0x2c]
push edx
call fcn.004716d0
add esp, 4
cmp byte [esp + 0x17], bl
je 0x406522
push 7
push str.version
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00402dd0
mov byte [esp + 0xd0], 4
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x4063b6
mov ecx, dword [esi + 0x2c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x4063bb
call fcn.00471ad5
mov esi, dword [esi + 0x28]
push edi
lea ecx, [esp + 0x2c]
add esi, ebp
call fcn.004095c0
push 0xffffffffffffffff
add eax, 4
push ebx
push eax
mov ecx, esi
call fcn.004028e0
mov byte [esp + 0xd0], 2
cmp dword [esp + 0x40], 0x10
jb 0x4063f4
mov eax, dword [esp + 0x2c]
push eax
call fcn.004716d0
add esp, 4
push 4
push str.name
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00402dd0
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd4], 5
call fcn.004095c0
add eax, 4
push eax
mov edi, 0x4ab5e8
lea esi, [esp + 0x74]
call fcn.0040dfa0
add esp, 4
mov ecx, eax
lea edi, [esp + 0x54]
mov byte [esp + 0xd0], 6
call fcn.00405790
mov ecx, dword [esp + 0x24]
push eax
add ecx, 0x34
push ecx
lea esi, [esp + 0xb0]
mov byte [esp + 0xd8], 7
call fcn.0040e050
add esp, 8
cmp dword [esp + 0x6c], 8
jb 0x406482
mov edx, dword [esp + 0x58]
push edx
call fcn.004716d0
add esp, 4
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov edi, 0x10
cmp dword [esp + 0x88], edi
jb 0x4064ae
mov eax, dword [esp + 0x74]
push eax
call fcn.004716d0
add esp, 4
mov esi, 0xf
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov byte [esp + 0xd0], 0xb
cmp dword [esp + 0x40], edi
jb 0x4064e0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004716d0
add esp, 4
lea edx, [esp + 0xa8]
push edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00421cc0
add esp, 4
mov byte [esp + 0xd0], 2
cmp dword [esp + 0xc0], 8
jb 0x40651e
mov eax, dword [esp + 0xac]
push eax
call fcn.004716d0
add esp, 4
mov esi, dword [esp + 0x24]
add dword [esp + 0x20], 1
add ebp, 0x1c
cmp ebp, 0x54
jle 0x4062b1
lea ecx, [esp + 0x48]
mov byte [esp + 0xd0], 1
call fcn.00405770
cmp dword [esp + 0xa4], 0x10
jb 0x40655e
mov ecx, dword [esp + 0x90]
push ecx
call fcn.004716d0
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
je 0x406588
push eax
call fcn.004726af
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00471497
add esp, 0xc0
ret