Function at 0x4910e0
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5989d7
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x4cc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4ec]
mov ebp, dword [esp + 0x4e4]
mov dword [esp + 0x30], esi
mov ebx, 2
mov dword [esp + 0x4d4], ebx
mov eax, dword [esp + 0x4dc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4911da
mov byte [esp + 0x4d4], 1
mov eax, dword [esp + 0x4dc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49117a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4d4], 0
mov eax, dword [esp + 0x4e0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4911a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4d4], 0xffffffff
mov eax, dword [esp + 0x4e8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4911d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4916f5
mov eax, dword [esp + 0x4e0]
push esi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x4dc], 3
mov eax, dword [esp + 0x4f0]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x4e0], 4
mov eax, dword [esp + 0x4e8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
lea ecx, [esp + 0x44]
mov dword [esi], eax
push ecx
mov byte [esp + 0x4e8], bl
call fcn.00490ca0
lea edx, [esp + 0x34]
push edx
mov edi, ebp
mov byte [esp + 0x4d8], 5
call fcn.00491b80
mov eax, dword [esp + 0x4dc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x49130e
lea esi, [esp + 0x34]
call fcn.00490060
mov byte [esp + 0x4d4], 1
mov eax, dword [esp + 0x4dc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4912ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4d4], 0
mov eax, dword [esp + 0x4e0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4912d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4d4], 0xffffffff
mov eax, dword [esp + 0x4e8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491304
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4916f5
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
xor ebx, ebx
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x4d4], 6
mov ecx, dword [esp + 0x4dc]
push ecx
push 0x5de6a8
lea edi, [esp + 0x1c]
call fcn.00407710
mov edx, 0x5c
add esp, 8
mov word [esp + 0x4bc], dx
mov dword [esp + 0x4c0], ebx
mov dword [esp + 0x4c4], ebx
mov byte [esp + 0x4d4], 7
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x64]
call fcn.0043e9b0
test eax, eax
je 0x491611
mov eax, dword [esp + 0x4c4]
test eax, eax
je 0x4913c8
mov ecx, dword [esp + 0x64]
shr ecx, 4
and ecx, 1
je 0x4913c8
cmp word [esp + 0x90], 0x2e
jne 0x4913c8
mov cx, word [esp + 0x92]
test cx, cx
je 0x4915e7
cmp cx, 0x2e
jne 0x4913c8
cmp word [esp + 0x94], 0
je 0x4915e7
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x68]
call fcn.0043e7c0
mov byte [esp + 0x4d4], 8
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x4915b8
cmp dword [esp + 0x4c4], 0
je 0x491528
mov eax, dword [esp + 0x64]
shr eax, 4
and eax, 1
je 0x491528
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x4d4], 9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4dc]
push ecx
push edx
push 0x5d7f74
lea edi, [esp + 0x24]
call fcn.00407710
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov ecx, 0x5d74e0
mov ebx, 1
call fcn.004066b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d4], 0xa
mov eax, dword [esp + 0x4e8]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x4dc], 0xb
mov eax, dword [esp + 0x4e8]
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x4e4], 0xc
mov esi, dword [esp + 0x28]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x3c], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x4e8], 0xa
call fcn.004910e0
mov byte [esp + 0x4d4], 9
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4914fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4d4], 8
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4915b8
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4915b8
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x4e4]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x4dc], 0xd
mov eax, dword [esp + 0x4f0]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [esp + 0x4e4], 0xe
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
lea esi, [esp + 0x78]
call fcn.0043e870
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x4e8], 8
call fcn.00490ca0
lea eax, [esp + 0x4c]
push eax
mov edi, ebp
mov byte [esp + 0x4d8], 0xf
call fcn.00491b80
lea esi, [esp + 0x4c]
mov ebx, 1
call fcn.00490060
mov byte [esp + 0x4d4], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4915e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c4]
mov ecx, dword [esp + 0x4c0]
test ecx, ecx
je 0x491618
test eax, eax
je 0x491618
lea edx, [esp + 0x64]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x4c4], eax
test eax, eax
jne 0x49138b
mov ecx, dword [esp + 0x4c0]
mov dword [esp + 0x4c4], 0
test ecx, ecx
je 0x49163e
cmp ecx, 0xffffffff
je 0x49163e
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x4c0], 0
mov byte [esp + 0x4d4], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x34]
call fcn.00490060
mov byte [esp + 0x4d4], 1
mov eax, dword [esp + 0x4dc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49169a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4d4], 0
mov eax, dword [esp + 0x4e0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4916c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4d4], 0xffffffff
mov eax, dword [esp + 0x4e8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4916f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
call fcn.004f673f
add esp, 0x4c4
ret 0x14