Function at 0x4206f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5803a6
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [edi]
xor ebx, ebx
cmp dword [esi - 0xc], ebx
jl 0x420733
mov dword [ebp - 0x14], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x420754
mov eax, dword [0x610024]
mov dword [ebp - 0x14], eax
cmp esi, ebx
jne 0x420743
xor eax, eax
jmp 0x42074a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004057d0
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], ebx
call fcn.0041ded0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0041f460
mov ecx, dword [ebp - 0x24]
push 0x5a8784
push ecx
mov byte [ebp - 4], 1
call fcn.00552b07
add esp, 0x14
test eax, eax
je 0x4207c1
mov edx, dword [0x610024]
mov dword [ebp + 8], edx
mov eax, dword [edi]
push eax
lea ecx, [ebp + 8]
push str.CArcIndex::AriRegist___s_
push ecx
mov byte [ebp - 4], 2
call fcn.0040d8d0
add esp, 0xc
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040e630
push 0x5fa440
lea eax, [ebp - 0x4c]
push eax
call fcn.00551aaa
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0041f5c0
add esp, 8
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0040de30
push 3
push 1
push 0x80000000
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0041fc70
test eax, eax
jns 0x420835
mov ecx, dword [0x610024]
mov dword [ebp + 8], ecx
mov edx, dword [edi]
push edx
lea eax, [ebp + 8]
push 0x5a8700
push eax
mov byte [ebp - 4], 5
call fcn.0040d8d0
add esp, 0xc
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040e630
push 0x5fa440
lea edx, [ebp - 0x4c]
push edx
call fcn.00551aaa
mov eax, dword [ebp - 0x6c]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push 4
push eax
call esi
mov eax, dword [ebp - 0x6c]
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push 4
lea edx, [ebp - 0x1c]
push edx
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x420867
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x6c]
push ebx
push ebx
add eax, 4
push eax
push ecx
call esi
push 0x28
call fcn.00551f1b
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x420896
mov ecx, eax
call fcn.00420590
mov esi, eax
jmp 0x420898
xor esi, esi
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], esi
call fcn.0041dd70
push esi
lea edx, [ebp - 0x40]
push esi
push edx
call fcn.00472620
add esp, 0xc
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x20]
push eax
add ecx, 4
mov byte [ebp - 4], 7
call fcn.00407060
mov edi, 8
mov eax, dword [ebp - 0x6c]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4208ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], 4
jne 0x420ab8
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
add edi, 4
call fcn.0054e1ec
add esp, 4
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
push edx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.0041dce0
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x6c]
push 0
lea eax, [ebp - 0x10]
push eax
push ecx
push ebx
push edx
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420942
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x10], eax
jne 0x420b0c
mov byte [ebx + eax], 0
add edi, dword [ebp - 0x18]
push 0x28
call fcn.00551f1b
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x420975
mov ecx, eax
call fcn.00420590
mov esi, eax
jmp 0x420977
xor esi, esi
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
mov dword [ebp - 0x38], esi
call fcn.0041dd70
push esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00472620
add esp, 0xc
mov esi, dword [ebp - 0x38]
mov byte [ebp - 4], 0xb
test ebx, ebx
jne 0x4209a4
xor eax, eax
jmp 0x4209ab
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
push eax
lea ecx, [esi + 4]
call fcn.004057d0
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x6c]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
add eax, 0x14
push eax
push edx
call esi
test eax, eax
jne 0x4209da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], 2
jne 0x420b4a
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x6c]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
add eax, 0xc
push eax
push edx
call esi
test eax, eax
jne 0x420a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], 4
jne 0x420b64
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x38]
add edi, 6
mov dword [edx + 8], edi
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
add ecx, 0x18
call fcn.00430c50
mov eax, dword [ebp - 0x38]
test byte [eax + 0x14], 1
je 0x420a3a
add edi, 4
mov esi, dword [ebp - 0x34]
add edi, dword [eax + 0xc]
mov byte [ebp - 4], 8
test esi, esi
je 0x420a72
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x420a72
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x420a72
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x44]
mov byte [ebp - 4], 7
test esi, esi
je 0x4208ce
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4208ce
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4208ce
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
jmp 0x4208ce
lea ecx, [ebp - 0x40]
push ecx
mov ecx, 0x626810
call fcn.00430c50
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00433ed0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0040df00
lea ecx, [ebp - 0x20]
call fcn.0043d750
lea ecx, [ebp - 0x24]
call fcn.0043d750
lea ecx, [ebp - 0x14]
call fcn.0043d750
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x610024]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov byte [ebp - 4], 9
push 0x5a86a8
lea edx, [ebp - 0x28]
push edx
call fcn.0040d8d0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040e630
push 0x5fa440
lea ecx, [ebp - 0x58]
push ecx
call fcn.00551aaa
mov edx, dword [0x610024]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov byte [ebp - 4], 0xc
push 0x5a8650
jmp 0x420b24
mov edx, dword [0x610024]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov byte [ebp - 4], 0xd
push 0x5a85f0
jmp 0x420b24