Function at 0x418950
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eb01
mov eax, dword fs:[0]
push eax
sub esp, 0xc28
mov eax, dword [0x44ef24]
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
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x450584]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xc34]
push eax
call fcn.00402bf0
add esp, 4
push str.I18N.dll
push dword [ebp - 0xc34]
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.00404200
mov ecx, eax
test ecx, ecx
je 0x418ca6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc28], 0
mov dword [ebp - 0xc2c], eax
mov dword [ebp - 0xc24], 0
mov esi, dword [ebp - 0xc34]
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 1
call fcn.0041ae20
add esp, 4
or ebx, 0xffffffff
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x418ae6
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418a69
push 1
lea eax, [ebp - 0x218]
push 0x44e960
push eax
call fcn.00418140
add esp, 0xc
mov dword [ebp - 0xc28], 0
lea eax, [ebp - 0x218]
push eax
push str._LoadI18NResouce__s
call fcn.00401530
add esp, 8
mov edx, dword [ebp - 0xc2c]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418aa8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc34]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x418aca
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.00427ee9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc28], eax
test eax, eax
je 0x418a73
push str.CreateI18N
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x418b24
mov eax, dword [ebp - 0xc28]
test eax, eax
je 0x418a73
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x418a69
lea ecx, [ebp - 0xc24]
push ecx
call eax
mov ecx, dword [ebp - 0xc24]
add esp, 4
test ecx, ecx
je 0x418a73
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x20]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418b50
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc2c]
call fcn.004052e0
cmp dword [ebp - 0xc24], 0
je 0x418a73
call fcn.00404200
mov ecx, eax
test ecx, ecx
je 0x418cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc30], eax
push 0
push 0x44066c
lea ecx, [ebp - 0xc30]
mov byte [ebp - 4], 2
call fcn.004052e0
mov esi, dword [ebp - 0xc24]
test esi, esi
je 0x418c24
push 0x800
lea eax, [ebp - 0xc20]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi]
add esp, 0xc
push esi
call dword [eax + 0x10]
mov ecx, dword [ebp - 0xc24]
lea esi, [ebp - 0xc20]
push 0x400
push esi
push 0
mov edx, dword [ecx]
push eax
push dword [ebp - 0xc2c]
push ecx
call dword [edx + 0x24]
test eax, eax
je 0x418c24
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418c02
sub ecx, edx
lea eax, [ebp - 0xc20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc30]
call fcn.004052e0
mov esi, dword [ebp - 0xc30]
push esi
call fcn.0041ae20
add esp, 4
test eax, eax
jne 0x418c56
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418c52
push 1
push 0x44e960
push esi
call fcn.00418140
add esp, 0xc
xor edi, edi
jmp 0x418c63
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov ecx, ebx
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x418c7e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x418a87
push dword [0x450588]
push edi
push str._LoadI18NResouce_hI18NResModule_hSrcResource:_d__d
call fcn.00401530
add esp, 0xc
mov eax, 0x450588
xchg dword [eax], edi
jmp 0x418a87
push 0x80004005
call fcn.00401cf0
push 0x80004005
call fcn.00401cf0
int3