Function at 0x421360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c296
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x43b1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x94], ebx
test ecx, ecx
je 0x4214df
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4213e1
mov eax, dword [ebx + 0x10]
sub eax, 0
je 0x42167e
dec eax
jne 0x42167e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42167e
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x64
xor edx, edx
div esi
mov edi, dword [ecx]
mov edx, dword [edi + 4]
push eax
mov eax, dword [ebx + 0x14]
push eax
call edx
jmp 0x42167e
cmp eax, 3
jne 0x42167e
cmp dword [ebp + 0xc], 0
je 0x4214cc
mov eax, dword [ebx + 0x10]
sub eax, 0
je 0x4214b9
dec eax
jne 0x42167e
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x4214df
mov eax, dword [ebx + 0x1c]
mov edi, dword [0x42d394]
push eax
call edi
test eax, eax
jne 0x421443
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x14]
push eax
call edx
xor eax, eax
jmp 0x421683
mov eax, dword [ebx + 0x18]
push eax
call edi
test eax, eax
je 0x421457
mov eax, dword [ebx + 0x18]
push eax
call dword [0x42d144]
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x8e]
push edx
mov word [ebp - 0x90], cx
call fcn.004277f0
mov ecx, dword [ebx + 0x1c]
push 0x40
lea eax, [ebp - 0x90]
push eax
push ecx
call dword [sym.imp.crt.dll_Ordinal_82]
add esp, 0x18
lea edx, [esi + 0xc]
push edx
lea ecx, [ebp - 0x90]
call fcn.0041c070
mov ecx, dword [ebx + 0xc]
test eax, eax
jne 0x421425
mov edx, dword [esi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [ebx + 0x1c]
push edx
mov edx, dword [ebx + 0x14]
push edx
call eax
xor eax, eax
jmp 0x421683
mov ecx, dword [ebx + 0x18]
lea esi, [ebx + 0x20]
push esi
call fcn.0041ff00
test eax, eax
jns 0x4214e6
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push 0
push 1
push edx
mov edx, dword [ebx + 0x14]
push edx
call eax
xor eax, eax
jmp 0x421683
mov eax, dword [esi]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4214df
mov dword [ebx + 0x10], 1
mov edi, dword [eax + 4]
lea esi, [ebp - 0x9c]
call fcn.00420a60
mov dword [ebp - 4], 0
add ebx, 0x1c
mov edi, ebx
call fcn.00411800
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov ecx, esi
call fcn.0040d8a0
mov esi, dword [ebp - 0x98]
lea ecx, [ebp - 0xa4]
add esi, 8
push ecx
mov dword [ebp - 0xa0], esi
call fcn.00420b50
add esp, 4
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.0040f260
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xa4]
call fcn.0040d8a0
mov esi, dword [ebp - 0x98]
mov edx, dword [esi + 0x14]
push edx
call fcn.00420f20
mov eax, dword [ebx]
add esp, 4
push eax
call dword [0x42d394]
test eax, eax
je 0x42161b
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x8e]
push ecx
mov word [ebp - 0x90], ax
call fcn.004277f0
mov eax, dword [ebx]
push 0x40
lea edx, [ebp - 0x90]
push edx
push eax
call dword [sym.imp.crt.dll_Ordinal_82]
add esp, 0x18
lea ecx, [esi + 0xc]
push ecx
lea ecx, [ebp - 0x90]
call fcn.0041c070
test eax, eax
jne 0x421612
mov edi, dword [ebp - 0x94]
mov eax, dword [edi + 0x18]
push eax
call dword [0x42d394]
test eax, eax
je 0x4215e5
mov edx, dword [edi + 0x18]
push edx
call dword [0x42d144]
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov edx, dword [edi + 0x14]
mov eax, dword [eax + 4]
push 0x64
push edx
call eax
mov eax, dword [esi + 0x14]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [edi + 0x14]
push eax
call edx
xor eax, eax
jmp 0x421683
mov eax, dword [ebx]
push eax
call dword [0x42d144]
mov edi, dword [ebp - 0x94]
add edi, 4
cmp dword [edi], 0
jne 0x42164c
push edi
push 0xc
call dword [sym.imp.crt.dll_Ordinal_5]
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 1
push 0
push eax
call edx
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 1
push eax
call edx
mov eax, dword [edi]
mov edx, dword [esi + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edx, dword [ebp - 0x94]
mov eax, dword [ebx]
mov edi, dword [edi]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x34]
push edx
mov edx, dword [ebp - 0xa0]
push 0x421330
push 1
push eax
mov eax, dword [edx]
push eax
push edi
call ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042728e
mov esp, ebp
pop ebp
ret 0xc