Function at 0x401330
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x527746
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x573804]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x573804]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x240]
call fcn.00403405
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40138e
push 0x80004005
call fcn.00401f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x238], ebx
call fcn.00403405
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4013bf
push 0x80004005
call fcn.00401f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x20a
lea ecx, [esp + 0x24]
push ebx
mov byte [esp + 0x240], 1
push ecx
mov dword [esp + 0x24], ebx
call fcn.00502b80
add esp, 0xc
cmp ebp, ebx
jne 0x401446
lea eax, [esi - 0x10]
mov byte [esp + 0x238], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401415
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40143c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x57
jmp 0x4015a7
push 0x105
lea ecx, [esp + 0x24]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
mov word [esp + eax*2 + 0x20], dx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x18]
call fcn.00401870
mov edi, dword [esp + 0x18]
cmp edi, ebx
jne 0x401494
push str.ycc.dll
lea ecx, [esp + 0x24]
push ecx
push str._s_s
lea edx, [esp + 0x28]
push edx
jmp 0x4014a8
push str.YccDrv.dll
lea eax, [esp + 0x24]
push eax
push str._s_s
lea ecx, [esp + 0x28]
push ecx
call fcn.00401b90
mov esi, dword [esp + 0x2c]
add esp, 0x10
push esi
push edi
lea edx, [esp + 0x1c]
push str.bArchitectureX64___d__File:__s._n
push edx
call fcn.00401b90
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp], eax
cmp eax, ebx
jne 0x401557
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
push str.Unable_to_load_YCC_library_w_err_0x_08lx._n
push ecx
mov dword [esp + 0x24], eax
call fcn.00401b90
mov ebp, dword [esp + 0x20]
add esp, 0xc
push ebp
call edi
lea eax, [ebp - 0x10]
mov byte [esp + 0x238], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40152a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401551
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
jmp 0x4015a7
mov byte [esp + 0x238], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40157e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00501481
add esp, 0x228
ret 4