Function at 0x420330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5802d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [esi + 8]
push edi
mov dword [ebp - 0x14], ecx
call fcn.00407060
mov eax, dword [0x610024]
mov dword [ebp - 0x3c], eax
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0041f720
test eax, eax
jne 0x4203cc
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x3c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x610020]
je 0x4203b3
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4203b3
push esi
call fcn.00551d56
add esp, 4
mov eax, 0x80004005
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 [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [esi + 0x14], edx
push str..arc
lea edx, [ebp - 0x3c]
mov dword [esi + 0x18], eax
push edx
lea eax, [ebp + 8]
push eax
mov dword [esi + 0x1c], ecx
call fcn.0040d960
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], 1
call fcn.0041ece0
add esp, 8
mov eax, dword [ebp + 8]
lea edx, [eax - 0xc]
mov byte [ebp - 4], 3
cmp edx, dword [0x610020]
je 0x420430
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420430
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call fcn.00551d56
add esp, 4
mov ax, word [ebp - 0x2c]
mov ebx, dword [ebp - 0x10]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
mov word [esi + 0x20], ax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x420495
mov ecx, dword [0x610024]
mov dword [ebp + 8], ecx
push ebx
mov byte [ebp - 4], 4
push str.CFileArc::Open
lea edx, [ebp + 8]
push edx
call fcn.0040d8d0
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e630
push 0x5fa440
lea ecx, [ebp - 0x28]
push ecx
call fcn.00551aaa
mov edx, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push eax
call edi
cmp eax, 0xffffffff
jne 0x4204ec
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov eax, dword [0x610024]
mov dword [ebp + 8], eax
push ebx
mov byte [ebp - 4], 5
push str.CFileArc::
lea ecx, [ebp + 8]
push ecx
call fcn.0040d8d0
add esp, 0xc
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e630
push 0x5fa440
lea eax, [ebp - 0x28]
push eax
call fcn.00551aaa
cmp word [esi + 0x20], 1
jne 0x42056a
mov eax, dword [esi + 4]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420530
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov ecx, dword [0x610024]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
mov byte [ebp - 4], 6
push str.CFileArc::Open___s_
jmp 0x4204c6
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edx
push eax
mov dword [esi + 0x18], ecx
call edi
cmp eax, 0xffffffff
jne 0x42056a
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov ecx, dword [0x610024]
mov dword [ebp + 8], ecx
push ebx
mov byte [ebp - 4], 7
push str.CFileArc::
jmp 0x42046f
lea ecx, [ebp - 0x10]
call fcn.0043d750
lea ecx, [ebp - 0x3c]
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