Function at 0x47d070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533792
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x58d00c]
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
cmp dword [edi + 0x80], 0
lea esi, [edi + 0x80]
mov eax, dword [ebp + 8]
je 0x47d0c5
cmp dword [edi + 0x84], 0
je 0x47d0c5
mov eax, 6
jmp 0x47d72d
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x44]
test eax, eax
je 0x47d0ed
push eax
call fcn.004393d0
mov ebx, eax
jmp 0x47d0f4
call fcn.0047fab0
mov ebx, eax
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x47d129
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x47d110
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00408ce0
xor eax, eax
mov dword [ebp - 0x18], 7
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.004392b0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x47d142
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00408ce0
push 0x17
xor eax, eax
mov dword [ebp - 0x78], 7
push str.monitor_client_impl.dll
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
call fcn.00408b40
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jne 0x47d190
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408770
jmp 0x47d204
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
shr eax, 4
test al, 1
je 0x47d204
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
cmp edx, 8
mov eax, dword [ebp - 0x1c]
cmovae ecx, ebx
add eax, eax
mov dword [ebp - 0xd8], eax
cmp word [ecx + eax - 2], 0x5c
je 0x47d1eb
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x2c]
cmp edx, 8
cmovae eax, ebx
cmp word [eax + ecx - 2], 0x2f
je 0x47d1eb
push 0x5521e8
lea ecx, [ebp - 0x2c]
call fcn.004182e0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004391a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0xe0]
push eax
lea ecx, [edi + 0x88]
call fcn.004878b0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0xdc]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0xd8], eax
call fcn.0047f3e0
cmp esi, eax
je 0x47d256
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [esi]
mov dword [esi], ecx
test eax, eax
je 0x47d256
push eax
call fcn.0047ebc0
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x47d266
push eax
call fcn.0047ebc0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x47d3fe
mov ecx, dword [esi]
lea eax, [ebp - 0x5c]
push eax
call fcn.00487860
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.0047feb0
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
mov edx, str.Unable_to_load_CAT_library_
lea ecx, [ebp - 0xd4]
call fcn.0041cfc0
add esp, 4
push 0x55d2a4
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.0041e530
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.0047f190
add esp, 4
mov eax, dword [ebp - 0xa8]
cmp eax, 8
jb 0x47d2f0
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.00408ce0
xor eax, eax
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], 0
mov word [ebp - 0xbc], ax
mov eax, dword [ebp - 0xc0]
cmp eax, 8
jb 0x47d32b
inc eax
lea ecx, [ebp - 0xd4]
push eax
push dword [ebp - 0xd4]
call fcn.00408ce0
xor eax, eax
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xd4], ax
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x47d35d
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00408ce0
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x47d38a
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.0043a560
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], 0xf
cmovae eax, dword [ebp - 0x44]
push eax
push 2
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.0047db10
add esp, 8
mov ecx, edi
call fcn.0047cff0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x47d3d7
test al, 0x10
jne 0x47d3d7
mov eax, 1
jmp 0x47d3d9
xor eax, eax
xor ebx, ebx
test al, al
mov eax, dword [ebp - 0x30]
setne bl
cmp eax, 8
jb 0x47d6bf
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00408ce0
jmp 0x47d6bf
lea ecx, [ebp - 0xd8]
call fcn.0047f450
sub esp, 0x28
mov byte [ebp - 4], 0xe
mov eax, esp
mov ecx, 0x47cd70
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x47d432
mov dword [eax], vtable.std::_Func_impl_void_____cdecl___void___char_const____class_std::allocator_int___void___void___char_const__.0
mov dword [eax + 4], 0x47cd70
mov dword [eax + 0x24], eax
mov eax, dword [esi]
mov esi, dword [ebp - 0xd8]
mov ecx, esi
push dword [eax]
call fcn.0048c1b0
test al, al
je 0x47d5f6
lea eax, [ebp - 0xd8]
push eax
lea ecx, [edi + 0x84]
call fcn.0047eac0
mov eax, dword [edi + 0x84]
mov eax, dword [eax]
test eax, eax
jne 0x47d46e
or eax, 0xffffffff
jmp 0x47d473
mov eax, dword [eax + 0x34]
call eax
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.00433340
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
push eax
mov edx, str.CAT_library_
lea ecx, [ebp - 0x5c]
call fcn.0041cfc0
add esp, 4
push 0x55d2f8
mov edx, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x44]
call fcn.0041e530
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa4]
call fcn.0047f190
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x47d4d7
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00408ce0
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x47d500
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00408ce0
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x47d52d
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00408ce0
xor eax, eax
mov dword [ebp - 0x60], 7
cmp dword [ebp - 0x90], 8
mov word [ebp - 0x74], ax
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
push 1
mov dword [ebp - 0x64], 0
call fcn.0047db10
add esp, 8
lea ecx, [ebp - 0xdc]
call fcn.0047f490
push eax
lea ecx, [edi + 0x108]
call fcn.0047e9e0
mov esi, dword [ebp - 0xdc]
test esi, esi
je 0x47d5ab
push dword [esi]
call fcn.004f2659
add esp, 4
push dword [esi + 4]
push 0x16
call fcn.004f5d49
push dword [esi + 8]
call fcn.004ee971
add esp, 0xc
push 0xc
push esi
call fcn.004c7d83
add esp, 8
mov eax, dword [ebp - 0x90]
mov ebx, 6
cmp eax, 8
jb 0x47d5ce
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.00408ce0
mov esi, dword [ebp - 0xd8]
xor eax, eax
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
jmp 0x47d684
lea eax, [ebp - 0x2c]
mov edx, str.Unable_to_load_CAT_library_
push eax
lea ecx, [ebp - 0x44]
call fcn.0041cfc0
add esp, 4
push 0x55d2f4
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x5c]
call fcn.0041e530
add esp, 4
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x47d639
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00408ce0
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x48], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
push 3
mov dword [ebp - 0x34], 0
call fcn.0047db10
add esp, 8
mov ecx, edi
call fcn.0047cff0
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x47d67f
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00408ce0
mov ebx, 1
test esi, esi
je 0x47d6bf
mov byte [ebp - 4], 0x19
mov edi, dword [esi + 4]
test edi, edi
je 0x47d6b4
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x47d6b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x47d6b4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 8
push esi
call fcn.004c7d83
add esp, 8
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0xe0]
test esi, esi
je 0x47d6e4
mov byte [ebp - 4], 0x1a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
push esi
call fcn.004c7d83
add esp, 8
mov eax, dword [ebp - 0x78]
cmp eax, 8
jb 0x47d6ff
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00408ce0
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
cmp ecx, 8
jb 0x47d72b
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00408ce0
mov eax, ebx
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.004c79eb
mov esp, ebp
pop ebp
ret 4