Function at 0x412b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5929e5
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5fcffc]
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 esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0
test edi, edi
js 0x412ef5
cmp edi, dword [esi + 0x2288c]
jge 0x412ef5
mov eax, dword [esi + 0x22888]
lea ebx, [edi*4]
add eax, ebx
lea ecx, [ebp - 0x28]
push eax
call fcn.00422ec0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
cmp edi, dword [esi + 0x228a0]
jge 0x412ef5
mov eax, dword [esi + 0x2289c]
lea ecx, [ebp - 0x18]
add eax, ebx
push eax
call fcn.00422ec0
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
cmp edi, dword [esi + 0x228b4]
jge 0x412ef5
mov eax, dword [esi + 0x228b0]
lea ecx, [ebp - 0x24]
add eax, ebx
push eax
call fcn.00422ec0
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], 0
cmp edi, dword [esi + 0x228c8]
jge 0x412ef5
mov eax, dword [esi + 0x228c4]
lea ecx, [ebp - 0x20]
add eax, ebx
push eax
call fcn.00422ec0
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
cmp edi, dword [esi + 0x228dc]
jge 0x412ef5
mov eax, dword [esi + 0x228d8]
lea ecx, [ebp - 0x14]
add eax, ebx
push eax
call fcn.00422ec0
mov byte [ebp - 4], 4
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x412efa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
mov ecx, 0x5d8d04
mov eax, dword [ebp - 0x14]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412cd9
test dx, dx
je 0x412cd5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412cd9
add eax, 4
add ecx, 4
test dx, dx
jne 0x412cb3
xor eax, eax
jmp 0x412cde
sbb eax, eax
or eax, 1
push 0x5daa48
test eax, eax
jne 0x412d43
lea eax, [esi + 0x338]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00422a00
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00420cc0
add esp, 0x18
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00422d00
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412d3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
jmp 0x412d9a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00422a00
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00420cc0
add esp, 0x18
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.00422d00
mov byte [ebp - 4], 8
or ebx, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412d93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412db1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x20]
cmp eax, 1
jne 0x412e28
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x412e28
push 3
lea eax, [ebp - 0xb0]
push edi
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb4], eax
call fcn.004212b0
push dword [ebp - 0xb4]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
mov dword [ebp - 0x30], eax
cmp ecx, edx
je 0x412e19
push ecx
call fcn.0057817f
mov eax, dword [ebp - 0x30]
add esp, 4
test eax, eax
je 0x412e28
call eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412e43
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412e61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x412e7c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412e9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412eb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x412ed7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0056eb08
mov esp, ebp
pop ebp
ret 4
call fcn.004250c2
push 0x80004005
call fcn.004033d0
int3