Function at 0x41bde0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b37c
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x55f3a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
cmp dword [eax], 0
je 0x41c104
lea ecx, [ebp - 0x22c]
call fcn.00413410
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x235], al
mov dword [ebp - 4], 1
or ebx, 0xffffffff
mov esi, dword [ebp - 0x228]
test esi, esi
je 0x41be76
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x41be76
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x41be76
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x235], 0
je 0x41bfef
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x56d1d8]
cmp eax, dword [ecx + 4]
jle 0x41becc
push 0x56d1d8
call fcn.004af7b6
add esp, 4
cmp dword [0x56d1d8], 0xffffffff
jne 0x41becc
push 0x56d1d8
mov dword [0x56d1dc], 0
call fcn.004af76c
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x235], 0
movlpd qword [ebp - 0x224], xmm0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 2
push eax
call fcn.00432a45
add esp, 4
mov dword [ebp - 4], 3
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x235]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
push 0x41d4f0
push 0x56d1dc
call fcn.00432c10
add esp, 0xc
test eax, eax
je 0x41c0d1
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 4
push eax
call fcn.00432a7f
push ecx
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e010
lea eax, [ebp - 0x2dc]
mov dword [ebp - 4], 7
push 0x56bc88
push eax
call fcn.0040c850
mov eax, dword [ebp - 0x234]
mov ecx, 0x547808
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x2dc]
push ecx
push eax
call fcn.0040c850
add esp, 0x10
lea ecx, [ebp - 0x240]
call fcn.00413410
mov byte [ebp - 4], 8
lea edx, [ebp - 0x2dc]
mov ecx, dword [eax]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x23c]
test esi, esi
je 0x41bfdd
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41bfdd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41bfdd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ef70
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004efd80
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
push dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41c104
push dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c104
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], 0
push ecx
push 1
call eax
mov esi, eax
mov dword [ebp - 0x234], esi
test esi, esi
je 0x41c104
push dword [edi + 0xc]
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, eax
je 0x41c0bf
nop word [eax + eax]
cmp dword [ecx], esi
je 0x41c0bb
add ecx, 4
cmp ecx, eax
jne 0x41c0b0
cmp ecx, eax
jne 0x41c0fd
cmp dword [edi + 8], eax
je 0x41c0ee
mov dword [eax], esi
mov eax, 1
add dword [edi + 4], 4
jmp 0x41c106
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 5
push eax
call fcn.00432aa0
add esp, 4
mov byte [ebp - 4], 3
test al, al
je 0x41c13a
jmp 0x41c124
lea ecx, [ebp - 0x234]
push ecx
push eax
mov ecx, edi
call fcn.0041cc90
mov eax, 1
jmp 0x41c106
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 - 0x14]
xor ecx, ebp
call fcn.004af60c
mov esp, ebp
pop ebp
ret 4
sub esp, 8
lea eax, [ebp - 0x224]
mov ecx, esp
push eax
call fcn.00404e30
call fcn.00404e90
call fcn.00432c28
int3