Function at 0x441550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de718
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
cmp word [esi + 0x100], di
jne 0x44159c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004b5c24
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4415b8
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
cmp di, bx
jne 0x4415dc
call fcn.0043de20
movzx ecx, ax
mov dword [ebp + 8], ecx
mov edi, ecx
mov edx, 0x409
cmp di, dx
je 0x4416b2
cmp di, bx
je 0x4416b2
push edi
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0043f6c0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00406510
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44162f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x18]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
mov byte [ebp - 0xd], 0
call ebx
test eax, eax
jne 0x44168d
push 0x409
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov dword [ebp + 8], 0x409
call fcn.0043f6c0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00406510
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44168a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x18]
push edi
call ebx
test eax, eax
je 0x44187d
call fcn.004b5c24
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4416f4
push 0x80004005
call fcn.004047e0
lea ecx, [ebp - 0x18]
call fcn.00405ef0
mov eax, dword [esi + 0x80]
mov ecx, 0x409
mov word [esi + 0x100], cx
cmp eax, ebx
je 0x4416e8
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esi + 0x44]
push edx
mov ecx, esi
mov dword [esi + 0x80], ebx
call fcn.00440610
mov edi, dword [ebp - 0x18]
mov byte [ebp - 0xd], 1
jmp 0x44187d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
cmp dword [edi - 4], 1
mov byte [ebp - 4], 3
jle 0x44171c
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00405c00
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x44180e
lea ecx, [ebp - 0x1c]
call fcn.00406050
push 0x13d
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00406290
mov edx, dword [ebp - 0x1c]
push str.LEDCENTERM_050302
push edx
call fcn.005bb9d1
add esp, 8
test eax, eax
jne 0x441796
mov ax, word [ebp + 8]
mov word [esi + 0x100], ax
mov eax, dword [esi + 0x80]
test eax, eax
je 0x441782
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x80], 0
push ebx
mov ecx, esi
mov dword [esi + 0x80], ebx
call fcn.00440610
mov byte [ebp - 0xd], 1
jmp 0x4417e9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x14]
push ecx
push 0x13e
mov ecx, esi
call fcn.00440520
push 0x5f6b18
lea ecx, [ebp - 0x14]
call fcn.00409ea0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00408d70
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x4417dc
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00405c00
mov eax, dword [ebp - 0x14]
push 0
push 0
push eax
call fcn.004c0bf7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44185a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x44185a
lea ecx, [ebp - 0x14]
push ecx
push 0x138
mov ecx, esi
call fcn.00440520
push 0x5fa3fc
lea ecx, [ebp - 0x14]
call fcn.00409ea0
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00408d70
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x441850
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00405c00
mov eax, dword [ebp - 0x14]
push 0
push 0
push eax
call fcn.004c0bf7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44187d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4418a0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4