Function at 0x41b1a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420d6c
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
mov esi, ecx
test esi, esi
push edi
je 0x41b3ae
cmp dword [esi + 0x7c], 0
jne 0x41b3ae
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x64]
mov eax, edi
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
call ebx
mov dword [esp + 0x7c], 0
cmp dword [esi + 0x7c], 0
jne 0x41b23a
push edi
call ebx
mov ebx, dword [esi + 0x44]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
test ebx, ebx
je 0x41b23a
add esi, 0x60
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
push eax
call edi
mov eax, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ebx, dword [ebp + 8]
mov byte [esp + 0x7c], 1
cmp dword [ebx + 0x14], 0
jne 0x41b2af
lea ecx, [esp + 0x54]
push ecx
call fcn.0041bb30
push 0
push eax
lea edx, [esp + 0x40]
mov bl, 2
push edx
mov byte [esp + 0x88], bl
call fcn.0041d620
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 3
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x41b321
cmp dword [ebx + 0x18], 8
lea edi, [ebx + 4]
jb 0x41b2bc
mov eax, dword [edi]
jmp 0x41b2be
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b321
cmp dword [ebx + 0x18], 8
jb 0x41b2d1
mov edi, dword [edi]
push edi
call fcn.0041d860
add esp, 4
test eax, eax
je 0x41b312
push 0
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.0041d620
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 4
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x41b321
push 0x4263c4
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x41b330
lea eax, [esp + 0x20]
push eax
call fcn.0041d280
add esp, 4
test al, al
je 0x41b351
mov edi, 1
push edi
call dword [0x42de0c]
mov dword [esi + 0x50], edi
mov dword [esi + 0x44], edi
jmp 0x41b359
mov dword [esp + 0x10], 0
call fcn.0041c300
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
call fcn.0041c260
push esi
mov dword [esi + 0x18], eax
call fcn.0041b980
add esi, 0x60
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x74]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4