Function at 0x420f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b472c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4e13b0]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
test edi, edi
je 0x42129a
test esi, esi
je 0x42129a
xor eax, eax
cmp ax, word [esi]
je 0x42129a
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00440bc0
add esp, 0xc
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
cmp dword [ebp + 0x18], 0
mov ecx, 0x20219
mov eax, 0x20119
mov dword [ebp - 4], 0
cmove eax, ecx
lea ecx, [ebp - 0x230]
push eax
push esi
push edi
call fcn.0040cdf0
test eax, eax
jne 0x421283
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
lea ecx, [ebp - 0x230]
call fcn.00421bb0
test eax, eax
jne 0x421283
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00406d80
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.004231c0
lea ecx, [ebp - 0x21c]
call fcn.004232c0
mov esi, dword [ebp - 0x21c]
or ebx, 0xffffffff
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x42102b
xor edi, edi
jmp 0x421268
cmp eax, 1
jg 0x421041
lea eax, [esi - 0x10]
push eax
call fcn.00407390
add esp, 4
add eax, 0x10
jmp 0x421061
lea ecx, [ebp - 0x21c]
call fcn.004141b0
push eax
push 1
push esi
lea ecx, [ebp - 0x220]
call fcn.0041f340
mov eax, dword [ebp - 0x220]
mov edx, 0x4c0508
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x42108e
test si, si
je 0x42108a
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x42108e
add ecx, 4
add edx, 4
test si, si
jne 0x421068
xor esi, esi
jmp 0x421093
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4210aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4210fc
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00422660
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.004070e0
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4210fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
mov edi, dword [esi - 0xc]
cmp edi, 1
jg 0x42111b
add esi, 0xfffffff0
push esi
call fcn.00407390
add esp, 4
add eax, 0x10
jmp 0x421141
lea ecx, [ebp - 0x21c]
call fcn.004141b0
push eax
lea eax, [esi - 2]
push 1
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 0x220]
call fcn.0041f340
mov eax, dword [ebp - 0x220]
mov edx, 0x4c0508
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x42116e
test si, si
je 0x42116a
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x42116e
add ecx, 4
add edx, 4
test si, si
jne 0x421148
xor esi, esi
jmp 0x421173
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42118a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4211dc
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004217a0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.004070e0
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4211dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
test esi, esi
je 0x421254
cmp word [esi], 0
je 0x421254
mov edx, dword [ebp - 0x21c]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x42121c
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00404830
mov edx, dword [ebp - 0x21c]
cmp dword [edx - 8], 0x104
jl 0x4212b8
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
push esi
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.00421cb0
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x21c]
mov edi, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x421285
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x421285
xor edi, edi
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x421296
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x42129c
xor eax, eax
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.00428c45
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004031a0
int3