Function at 0x412d00
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4e4077
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x24], edi
xor ebp, ebp
mov dword [esp + 0x18], esi
lea eax, [esp + 0x1c]
push eax
mov ecx, str.FZLTCXHJW.TTF
mov dword [esp + 0xcc], esi
call fcn.004099e0
mov byte [esp + 0xc8], 1
mov ecx, dword [edi + 0x90]
mov eax, ecx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x412d86
sub eax, edi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x70]
call fcn.004024d0
mov byte [esp + 0xc8], 2
mov ecx, dword [esp + 0x1c]
mov edx, esi
call fcn.0048b3c0
lea ebx, [esp + 0x84]
call fcn.0048a6a0
mov ecx, str.Fonts_
mov edx, ebx
mov byte [esp + 0xc8], 3
call fcn.0048b3c0
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x412deb
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00416bc0
add esp, 8
mov byte [esp + 0xc8], 4
mov ecx, dword [eax]
xor ebx, ebx
mov edi, 7
mov eax, ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x412e20
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x54]
call fcn.004024d0
mov byte [esp + 0xc8], 6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x4f1a30
call fcn.004099e0
mov byte [esp + 0xc8], 7
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x8c]
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
call fcn.00402090
mov byte [esp + 0xc8], 8
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xa0]
call fcn.0048b3c0
push 4
push str..FOT
lea esi, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
call fcn.004024d0
mov edx, esi
push edx
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0xd0], 9
call fcn.0048aae0
mov esi, 8
mov byte [esp + 0xc8], 8
cmp dword [esp + 0x48], esi
jb 0x412f12
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004b84d9
add esp, 4
cmp dword [esp + 0x80], esi
mov eax, dword [esp + 0x6c]
jae 0x412f23
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.004bbfee
add esp, 8
cmp eax, 0xffffffff
jne 0x412f5b
cmp dword [esp + 0x80], esi
mov eax, dword [esp + 0x6c]
jae 0x412f43
lea eax, [esp + 0x6c]
push eax
push str.AddQMFontResource__ws_not_Exist
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
jmp 0x4130a9
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x412f69
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.004bbfee
add esp, 8
cmp eax, 0xffffffff
je 0x412fa3
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
mov ebp, 1
jae 0x412f8b
lea eax, [esp + 0x50]
push eax
push str.AddQMFontResource__ws_has_Exist_
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
jmp 0x4130a9
cmp dword [esp + 0x64], esi
mov ecx, dword [esp + 0x50]
jae 0x412fb1
lea ecx, [esp + 0x50]
cmp dword [esp + 0x80], esi
mov eax, dword [esp + 0x6c]
jae 0x412fc2
lea eax, [esp + 0x6c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, eax
cmp ebp, ebx
jne 0x413003
cmp dword [esp + 0x64], esi
mov esi, dword [esp + 0x50]
jae 0x412fdf
lea esi, [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.AddQMFontResource_CopyFile__ws_error__last_error_is__d
mov ecx, 0x515890
call fcn.004899e0
add esp, 0xc
mov esi, 8
jmp 0x4130a9
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x413011
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceW]
mov ebp, eax
cmp ebp, ebx
jne 0x413039
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddFontResource_error._lasterror_is__d
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
jmp 0x4130a9
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x413048
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4130a4
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
call fcn.00409660
lea ecx, [esp + 0x2c]
push ecx
push 0x3e8
push ebx
push ebx
push ebx
push 0x1d
push 0xffff
mov dword [esp + 0x48], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov edi, 7
mov ebp, 1
cmp dword [esp + 0xb8], esi
mov edx, dword [esp + 0x24]
mov dword [edx + 0x170], ebp
jb 0x4130cc
mov eax, dword [esp + 0xa4]
push eax
call fcn.004b84d9
add esp, 4
mov byte [esp + 0xc8], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov word [esp + 0xa4], bx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41310a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x64], esi
jb 0x41311d
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004b84d9
add esp, 4
cmp dword [esp + 0x9c], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
jb 0x413143
mov edx, dword [esp + 0x88]
push edx
call fcn.004b84d9
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
jb 0x41316f
mov eax, dword [esp + 0x6c]
push eax
call fcn.004b84d9
add esp, 4
mov byte [esp + 0xc8], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4131a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4131b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004b84de
add esp, 0xb8
ret