Function at 0x100378b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a2b2
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x100bc1b4]
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 - 0x230], eax
test edi, edi
je 0x10037cd0
test esi, esi
je 0x10037cd0
xor eax, eax
cmp ax, word [esi]
je 0x10037cd0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100592a0
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
cmp dword [ebp + 0x18], 0
je 0x10037958
push 0x20119
jmp 0x1003795d
push 0x20219
push esi
push edi
call fcn.100222f0
test eax, eax
jne 0x10037c9e
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.100380e0
test eax, eax
jne 0x10037c9e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10007b40
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x21c]
movzx eax, word [edi]
push eax
call fcn.10064c1c
add esp, 4
test eax, eax
je 0x100379d8
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.10064c1c
add esp, 4
test eax, eax
jne 0x100379c4
mov esi, dword [ebp - 0x21c]
mov ebx, 1
cmp edi, esi
je 0x10037a6d
mov edx, dword [esi - 0xc]
sub edi, esi
sar edi, 1
test edx, edx
js 0x10037cee
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10037a1a
push edx
lea ecx, [ebp - 0x21c]
call fcn.10011f00
mov esi, dword [ebp - 0x21c]
mov ecx, dword [esi - 0xc]
lea edx, [esi + edi*2]
mov ebx, ecx
sub ebx, edi
lea eax, [ebx*2 + 2]
push eax
push edx
lea eax, [ecx*2 + 2]
push eax
push esi
call fcn.10038660
add esp, 0x10
test ebx, ebx
js 0x10037cee
mov eax, dword [ebp - 0x21c]
cmp ebx, dword [eax - 8]
jg 0x10037cee
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + ebx*2], cx
lea ebx, [ecx + 1]
mov esi, dword [ebp - 0x21c]
movzx eax, word [esi]
xor edi, edi
test ax, ax
je 0x10037af8
mov ecx, eax
nop dword [eax]
push ecx
call fcn.10064c1c
add esp, 4
test eax, eax
je 0x10037a98
test edi, edi
mov eax, esi
cmovne eax, edi
mov edi, eax
jmp 0x10037a9a
xor edi, edi
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x10037a80
test edi, edi
je 0x10037af2
mov eax, dword [ebp - 0x21c]
sub edi, eax
sar edi, 1
js 0x10037cf8
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, edi
or ecx, ebx
jge 0x10037ada
push edi
lea ecx, [ebp - 0x21c]
call fcn.10011f00
mov eax, dword [ebp - 0x21c]
cmp edi, dword [eax - 8]
jg 0x10037cee
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + edi*2], cx
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
jne 0x10037b14
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.10008ed0
jmp 0x10037ca0
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10037f00
mov byte [ebp - 4], 2
mov ecx, 0x100942a4
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10037b59
test dx, dx
je 0x10037b55
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10037b59
add eax, 4
add ecx, 4
test dx, dx
jne 0x10037b33
xor esi, esi
jmp 0x10037b5e
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10008ed0
test esi, esi
jne 0x10037bad
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.10038380
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
push eax
call fcn.10017690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10008ed0
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10038380
mov byte [ebp - 4], 4
mov ecx, 0x100942a4
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10037bf6
test dx, dx
je 0x10037bf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10037bf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10037bd0
xor esi, esi
jmp 0x10037bfb
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10008ed0
test esi, esi
jne 0x10037c4a
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.10037f00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push eax
call fcn.10017690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10008ed0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x10037c7f
cmp word [eax], 0
je 0x10037c7f
push eax
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.10036fd0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.10038330
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.10008ed0
jmp 0x10037ca0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x10037cc2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov eax, esi
jmp 0x10037cd2
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.100536aa
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.1000b090
push 0x80070057
call fcn.1000b090
int3