Function at 0x412f50
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4e3ef7
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.00409c00
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 0x412fd6
sub eax, edi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x70]
call fcn.00402530
mov byte [esp + 0xc8], 2
mov ecx, dword [esp + 0x1c]
mov edx, esi
call fcn.0048b280
lea ebx, [esp + 0x84]
call fcn.0048a4b0
mov ecx, str.Fonts_
mov edx, ebx
mov byte [esp + 0xc8], 3
call fcn.0048b280
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x41303b
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00416c70
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 0x413070
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x54]
call fcn.00402530
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 0x4130b2
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.00409c00
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.004020f0
mov byte [esp + 0xc8], 8
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xa0]
call fcn.0048b280
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.00402530
mov edx, esi
push edx
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0xd0], 9
call fcn.0048a8f0
mov esi, 8
mov byte [esp + 0xc8], 8
cmp dword [esp + 0x48], esi
jb 0x413162
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004b83e9
add esp, 4
cmp dword [esp + 0x80], esi
mov eax, dword [esp + 0x6c]
jae 0x413173
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.004bbf01
add esp, 8
cmp eax, 0xffffffff
jne 0x4131ab
cmp dword [esp + 0x80], esi
mov eax, dword [esp + 0x6c]
jae 0x413193
lea eax, [esp + 0x6c]
push eax
push str.AddQMFontResource__ws_not_Exist
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
jmp 0x4132f9
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x4131b9
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.004bbf01
add esp, 8
cmp eax, 0xffffffff
je 0x4131f3
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
mov ebp, 1
jae 0x4131db
lea eax, [esp + 0x50]
push eax
push str.AddQMFontResource__ws_has_Exist_
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
jmp 0x4132f9
cmp dword [esp + 0x64], esi
mov ecx, dword [esp + 0x50]
jae 0x413201
lea ecx, [esp + 0x50]
cmp dword [esp + 0x80], esi
mov eax, dword [esp + 0x6c]
jae 0x413212
lea eax, [esp + 0x6c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, eax
cmp ebp, ebx
jne 0x413253
cmp dword [esp + 0x64], esi
mov esi, dword [esp + 0x50]
jae 0x41322f
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, 0x5158b0
call fcn.00489840
add esp, 0xc
mov esi, 8
jmp 0x4132f9
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x413261
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceW]
mov ebp, eax
cmp ebp, ebx
jne 0x413289
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddFontResource_error._lasterror_is__d
mov ecx, 0x5158b0
call fcn.00489840
add esp, 8
jmp 0x4132f9
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x413298
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 0x4132f4
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
call fcn.00409880
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 0x41331c
mov eax, dword [esp + 0xa4]
push eax
call fcn.004b83e9
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 0x41335a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x64], esi
jb 0x41336d
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004b83e9
add esp, 4
cmp dword [esp + 0x9c], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
jb 0x413393
mov edx, dword [esp + 0x88]
push edx
call fcn.004b83e9
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
jb 0x4133bf
mov eax, dword [esp + 0x6c]
push eax
call fcn.004b83e9
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 0x4133f6
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 0x413405
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.004b83ee
add esp, 0xb8
ret