Function at 0x40d0e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4900a7
mov eax, dword fs:[0]
push eax
sub esp, 0x794
mov eax, dword [0x4be4bc]
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
mov ebx, ecx
mov dword [ebp - 0x77c], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x790], eax
lea eax, [ebp - 0x78c]
push eax
call fcn.0040a5a0
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x58]
add esp, 4
push eax
call fcn.004089d0
push 0xb
xor eax, eax
mov dword [ebp - 4], 0
push str.pdfmain.dll
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402680
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00408a00
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40d1b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d1ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d1ad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
cmp dword [ebp - 0x30], 0
jne 0x40d1c5
or ebx, 0xffffffff
jmp 0x40d8fd
mov dword [ebp - 0x798], 0
mov dword [ebp - 0x794], 0
push 0x458
mov byte [ebp - 4], 4
call fcn.0048c917
add esp, 4
mov dword [ebp - 0x770], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x40d203
mov ecx, eax
call fcn.004091f0
mov esi, eax
jmp 0x40d205
xor esi, esi
mov dword [ebp - 0x770], esi
push 0x10
mov byte [ebp - 4], 6
call fcn.0048c917
mov edi, eax
add esp, 4
mov dword [ebp - 0x770], edi
test edi, edi
je 0x40d23e
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_struct_KClientStartupInfo_.0
mov dword [edi + 0xc], esi
jmp 0x40d240
xor edi, edi
mov ecx, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x798], esi
mov dword [ebp - 0x794], edi
call fcn.0040ca90
mov dword [esi + 0x454], eax
mov eax, dword [ebp - 0x78c]
mov dword [esi + 0x410], eax
mov eax, dword [ebp - 0x788]
mov dword [esi + 0x414], eax
call fcn.0047ad20
mov ecx, dword [0x4c27b4]
test al, al
lea eax, [ebp - 0x28]
cmovne ecx, dword [0x4c27b0]
push ecx
push eax
call fcn.004239f0
mov ecx, eax
lea ebx, [esi + 0x64]
add esp, 8
mov dword [ebp - 0x788], ecx
cmp ebx, ecx
je 0x40d330
mov edx, dword [ebx + 0x14]
cmp edx, 8
jb 0x40d2e8
mov eax, dword [ebx]
lea ecx, [edx*2 + 2]
cmp ecx, 0x1000
jb 0x40d2d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d35c
mov eax, edx
push ecx
push eax
call fcn.0048c947
mov ecx, dword [ebp - 0x788]
add esp, 8
mov dword [ebx + 0x10], 0
xor eax, eax
mov word [ebx], ax
mov dword [ebx + 0x14], 7
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40d36c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d362
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d362
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov ebx, dword [ebp - 0x77c]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebx + 4]
call fcn.004089c0
mov ecx, eax
call fcn.004441b0
mov ecx, eax
call fcn.00446840
push esi
push eax
mov byte [ebp - 4], 7
call fcn.0041d560
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00407f50
call fcn.0040c770
test al, al
je 0x40d4be
cmp dword [esi + 0x30], 1
jne 0x40d4be
mov eax, dword [esi + 0x2c]
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
add eax, 8
push eax
call fcn.004016c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0x49c81c
push 0
push dword [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
call fcn.004034f0
add esp, 0x14
cmp eax, 1
je 0x40d44c
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407090
push eax
lea ecx, [ebp - 0x28]
call fcn.004037e0
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40d44c
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d442
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d442
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str..pdf
call fcn.0040f260
add esp, 8
test eax, eax
jne 0x40d46d
xor ebx, ebx
jmp 0x40d479
jle 0x40d476
mov ebx, 1
jmp 0x40d479
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40d8d8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d4af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d4af
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
jmp 0x40d8d8
push esi
push dword [0x4c27b0]
call fcn.00424180
push esi
push 0
push dword [0x4c27b0]
call fcn.0041c190
push esi
push dword [0x4c27b0]
call fcn.00423d40
add esp, 0x1c
cmp dword [esi + 0xbc], 2
je 0x40d8d6
cmp byte [esi], 0
je 0x40d8d6
push 3
push 0x49c820
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00402590
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
call fcn.00414410
mov edx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x40d568
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d55e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d55e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov dword [ebp - 0x788], 0
cmp byte [esi + 0x7f], 0
mov byte [ebp - 4], 0xa
jne 0x40d5c4
push 1
call fcn.004813f0
add esp, 4
test al, al
je 0x40d5c4
push 0xa0
call fcn.0048c917
add esp, 4
mov dword [ebp - 0x770], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x40d5b1
push 3
push esi
mov ecx, eax
call fcn.0042de70
jmp 0x40d5b3
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x788], eax
call fcn.004338e0
sub esp, 8
mov dword [ebp - 0x770], esp
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x40d5e4
lock inc dword [edi + 4]
mov dword [eax], esi
mov dword [eax + 4], edi
mov ecx, dword [ebx + 4]
mov byte [ebp - 4], 0xc
call fcn.004088a0
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00425470
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0x49c46c
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x768]
push 0
push str.SoftwareKingsoftOffice6.0CommonResourceManager
push eax
call fcn.0042a9b0
xor eax, eax
mov byte [ebp - 4], 0xd
cmp byte [0x4c47cc], al
mov dword [ebp - 0x774], eax
mov word [ebp - 0x770], ax
mov eax, 1
je 0x40d66c
mov word [ebp - 0x774], ax
lea eax, [ebp - 0x770]
push eax
lea eax, [ebp - 0x772]
push eax
push 0x49b844
push str.PdfPreReadImage
push 1
call fcn.004425a0
add esp, 0x14
lea eax, [ebp - 0x7a0]
mov byte [ebp - 4], 0xe
push eax
call fcn.0040cb60
add esp, 4
lea ecx, [ebp - 0x768]
call fcn.0042c700
mov byte [ebp - 0x775], al
lea eax, [ebp - 0x18]
push eax
call fcn.0040cb60
add esp, 4
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x7a0]
mov eax, dword [eax + 4]
sbb eax, dword [ebp - 0x79c]
push 0
push 0xf4240
push eax
push ecx
call fcn.0048ce00
mov dword [esi + 0x418], eax
mov dword [esi + 0x41c], edx
cmp byte [0x4c47cc], 0
mov byte [ebp - 4], 0xf
je 0x40d6ee
push dword [ebp - 0x770]
push dword [ebp - 0x772]
push dword [ebp - 0x774]
call fcn.00442600
add esp, 0xc
push 0x4c26e0
push 0x4c26e8
push 0x410ce0
push 0x49b6fc
call fcn.00410d50
cmp dword [0x4c270c], 0
je 0x40d729
push 0x49b750
push dword [0x4c26e4]
push dword [0x4c26e0]
call fcn.00410d90
add esp, 0xc
lea ecx, [ebp - 0x768]
mov byte [ebp - 4], 0xa
call fcn.0042ac50
cmp byte [ebp - 0x775], 0
mov byte [ebp - 0x769], 0
je 0x40d7c1
push 0x20
call fcn.0048c917
mov ecx, eax
add esp, 4
mov dword [ebp - 0x770], ecx
test ecx, ecx
je 0x40d77d
xor eax, eax
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 7
mov word [ecx + 4], ax
mov dword [ecx], 5
mov dword [ecx + 0x1c], eax
jmp 0x40d77f
xor ecx, ecx
cmp byte [ebx + 0x14], 0
mov byte [ebp - 4], 0xa
jne 0x40d7ba
cmp dword [ebx + 0xc], 0xffffffff
jne 0x40d7ba
lea eax, [ebx + 0x10]
push eax
push 0
push ecx
push 0x40a140
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx + 0xc], eax
test eax, eax
mov byte [ebx + 0x14], 1
setne byte [ebp - 0x769]
jmp 0x40d7c1
mov byte [ebp - 0x769], 0
xor eax, eax
mov dword [ebp - 0x784], eax
mov word [ebp - 0x780], ax
cmp byte [0x4c47cc], al
je 0x40d806
mov eax, 1
mov word [ebp - 0x784], ax
lea eax, [ebp - 0x780]
push eax
lea eax, [ebp - 0x782]
push eax
push 0x49b844
push str.KRunTimeProtector
push 1
call fcn.004425a0
add esp, 0x14
lea ecx, [ebp - 0x776]
mov byte [ebp - 4], 0x12
call fcn.0043bf00
lea ecx, [ebp - 0x776]
call fcn.00426420
cmp byte [0x4c47cc], 0
mov byte [ebp - 4], 0x13
je 0x40d847
push dword [ebp - 0x780]
push dword [ebp - 0x782]
push dword [ebp - 0x784]
call fcn.00442600
add esp, 0xc
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 0x788]
mov ecx, eax
mov eax, dword [ebp - 0x77c]
mov dword [eax + 8], ecx
test ecx, ecx
je 0x40d8b6
push str.xmain
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x770], eax
test eax, eax
je 0x40d8b0
mov ecx, 0x4c27d0
call fcn.0043c9a0
push eax
call fcn.0043ca50
push esi
push dword [ebp - 0x790]
push dword [ebp + 8]
call dword [ebp - 0x770]
add esp, 0x10
mov ebx, eax
mov eax, dword [ebp - 0x77c]
cmp byte [ebp - 0x769], 0
je 0x40d8c7
lea ecx, [eax + 0xc]
call fcn.0040ca50
test esi, esi
je 0x40d8d8
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x1c]
jmp 0x40d8d8
xor ebx, ebx
test edi, edi
je 0x40d8fd
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40d8fd
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40d8fd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40d933
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d929
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d973
push edx
push ecx
call fcn.0048c947
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x40d983
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d979
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d979
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048c947
add esp, 8
mov eax, ebx
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.0048cbb4
mov esp, ebp
pop ebp
ret 8