Function at 0x40d030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7253
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x50c3e4]
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 - 0x134], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x144], 0
mov ecx, dword [ebx + 4]
push eax
call fcn.00408d30
xor eax, eax
mov dword [ebp - 4], 0
push str.kprometheus.dll
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040aff0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.00408d60
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40d101
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d0f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da3a
push edx
push ecx
call fcn.0048d1e5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x48], eax
jne 0x40d122
or ebx, 0xffffffff
jmp 0x40d993
call fcn.0040b100
call fcn.0047a780
test al, al
je 0x40d135
call fcn.00479ae0
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408cc0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.00444900
add esp, 8
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00402320
mov bl, 1
push 0
mov dword [ebp - 0x130], ebx
call fcn.00479b90
add esp, 4
lea ecx, [ebp - 0x40]
push 0x4d6f7c
call fcn.0040b1b0
mov ecx, 1
test eax, eax
je 0x40d1f0
push 0x4d56d8
lea ecx, [ebp - 0x40]
call fcn.0040b1b0
test eax, eax
je 0x40d1eb
push 0x4d6f84
lea ecx, [ebp - 0x40]
call fcn.0040b1b0
test eax, eax
je 0x40d1eb
push 0x4d6f8c
lea ecx, [ebp - 0x40]
call fcn.0040b1b0
test eax, eax
je 0x40d1eb
push 0
call fcn.0047a000
xor ecx, ecx
movzx ebx, bl
add esp, 4
test al, al
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x130], ebx
push str.prometheus
call fcn.0040aff0
jmp 0x40d2d1
mov ecx, 1
cmp byte [0x513110], 0
je 0x40d222
lea eax, [ebp - 0x13c]
mov word [ebp - 0x140], cx
push eax
lea eax, [ebp - 0x13e]
push eax
push 0x4d6d4e
push str.ComponentPreReadImage
push 1
call fcn.00432d40
add esp, 0x14
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 7
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x74], 8
push eax
cmovae esi, dword [ebp - 0x88]
push 0
call fcn.0047a000
add esp, 4
xor ecx, ecx
test al, al
setne cl
lea ecx, [ecx*2 + 1]
push ecx
push str.SoftwareKingsoftOffice6.0CommonResourceManager
push esi
lea ecx, [ebp - 0xf0]
call fcn.00422a60
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 8
call fcn.00423bd0
push 0
call fcn.00479b90
add esp, 4
test al, al
jne 0x40d298
push 0
call fcn.0047a000
add esp, 4
test al, al
je 0x40d29f
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0xf0]
call fcn.00422db0
cmp byte [0x513110], 0
mov byte [ebp - 4], 9
je 0x40d2d1
push dword [ebp - 0x13c]
push dword [ebp - 0x13e]
push dword [ebp - 0x140]
call fcn.00432da0
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x150], esi
push 0x268
mov byte [ebp - 4], 0xb
call fcn.0048d1b5
add esp, 4
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x40d30f
mov ecx, eax
call fcn.004096c0
mov edi, eax
jmp 0x40d311
xor edi, edi
mov dword [ebp - 0x13c], edi
push 0x10
mov byte [ebp - 4], 0xd
call fcn.0048d1b5
mov ebx, eax
add esp, 4
mov dword [ebp - 0x13c], ebx
test ebx, ebx
je 0x40d34a
mov dword [ebx + 4], 1
mov dword [ebx + 8], 1
mov dword [ebx], vtable.std::_Ref_count_struct_KPromeHostStartupInfo_.0
mov dword [ebx + 0xc], edi
jmp 0x40d34c
xor ebx, ebx
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0xb8]
mov byte [edi], 0
mov dword [edi + 8], 0
push eax
mov ecx, dword [ecx + 4]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], ebx
call fcn.00408cc0
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xe
push eax
call fcn.00444900
add esp, 8
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x10
call fcn.00402320
push 0
call fcn.00479d90
add esp, 4
test al, al
je 0x40d479
push 0x4d6f7c
lea ecx, [ebp - 0x70]
mov byte [edi], 1
call fcn.0040b1b0
test eax, eax
jne 0x40d3da
lea ecx, [edi + 0x2c]
push str.wpsoffice_wps_starup_object
call fcn.0040aff0
mov dword [edi + 8], 1
jmp 0x40d486
push 0x4d6f84
lea ecx, [ebp - 0x70]
call fcn.0040b1b0
test eax, eax
jne 0x40d404
lea ecx, [edi + 0x2c]
push str.wpsoffice_wpp_starup_object
call fcn.0040aff0
mov dword [edi + 8], 3
jmp 0x40d486
push 0x4d56d8
lea ecx, [ebp - 0x70]
call fcn.0040b1b0
test eax, eax
jne 0x40d42b
lea ecx, [edi + 0x2c]
push str.wpsoffice_et_starup_object
call fcn.0040aff0
mov dword [edi + 8], 2
jmp 0x40d486
push 0x4d6f8c
lea ecx, [ebp - 0x70]
call fcn.0040b1b0
test eax, eax
jne 0x40d452
lea ecx, [edi + 0x2c]
push str.wpsoffice_pdf_starup_object
call fcn.0040aff0
mov dword [edi + 8], 4
jmp 0x40d486
push 0x4d70a4
lea ecx, [ebp - 0x70]
call fcn.0040b1b0
test eax, eax
jne 0x40d486
lea ecx, [edi + 0x2c]
push str.wpsoffice_ofd_starup_object
call fcn.0040aff0
mov dword [edi + 8], 5
jmp 0x40d486
lea ecx, [edi + 0x2c]
push str.wpsoffice_starup_object
call fcn.0040aff0
mov eax, dword [0x511038]
test al, 1
jne 0x40d4ea
or eax, 1
mov dword [0x511038], eax
push str.GetCurrentPackageFamilyName
push str.kernel32
mov byte [ebp - 4], 0x11
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4dd
push 0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0
push ecx
call eax
cmp eax, 0x7a
jne 0x40d4dd
mov al, 1
mov byte [ebp - 4], 0x10
mov byte [0x511034], al
jmp 0x40d4ef
xor al, al
mov byte [ebp - 4], 0x10
mov byte [0x511034], al
jmp 0x40d4ef
mov al, byte [0x511034]
test al, al
je 0x40d502
push 4
lea ecx, [edi + 0x2c]
push str._uwp
call fcn.00404930
lea eax, [ebp - 0x160]
push eax
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
call fcn.00408d20
mov ecx, eax
call fcn.00436af0
mov ecx, eax
call fcn.00438920
push edi
push eax
mov byte [ebp - 4], 0x12
call fcn.00416ec0
add esp, 8
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x160]
call fcn.00403770
mov eax, dword [ebp - 0x130]
test al, al
je 0x40d6c8
cmp dword [ebp - 0x60], 0
jne 0x40d57a
push 0
call fcn.00479b90
add esp, 4
test al, al
je 0x40d57a
mov eax, dword [edi + 8]
dec eax
cmp eax, 3
ja 0x40d57a
xor al, al
mov dword [ebp - 0x130], eax
jmp 0x40d6c8
push edi
call fcn.00419670
push ecx
mov dword [ebp - 0x13c], esp
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test ebx, ebx
je 0x40d59e
lock inc dword [ebx + 4]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x134]
mov byte [ebp - 4], 0x13
mov ecx, dword [eax + 4]
call fcn.00408cb0
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.0041bf80
call fcn.00479d80
test al, al
je 0x40d5d2
call fcn.00479e00
test al, al
je 0x40d627
xor eax, eax
mov dword [ebp - 0x90], 0
push str.WPSPlusVersion
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.0040aff0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x14
push eax
mov dword [ebp - 0x144], 1
call fcn.0047a080
add esp, 4
mov byte [ebp - 0x129], 0
test al, al
je 0x40d62e
mov byte [ebp - 0x129], 1
test byte [ebp - 0x144], 1
mov dword [ebp - 4], 0x10
je 0x40d67e
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x40d67e
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d674
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da3f
push edx
push ecx
call fcn.0048d1e5
add esp, 8
cmp byte [ebp - 0x129], 0
je 0x40d6c2
push 0x58
call fcn.0048d1b5
add esp, 4
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x40d6af
push edi
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.00423eb0
mov esi, eax
jmp 0x40d6b1
xor esi, esi
mov ecx, esi
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x148], esi
call fcn.00425140
mov eax, dword [ebp - 0x130]
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 0x16
test al, al
jne 0x40d716
mov eax, dword [edi + 8]
dec eax
cmp eax, 3
ja case.0x40d6ed.1
jmp dword [eax*4 + 0x40da50]
push 0x4d6f84
jmp 0x40d70e
push 0x4d56d8
jmp 0x40d70e
push 0x4d6f8c
jmp 0x40d70e
push 0x4d6f7c
lea ecx, [ebp - 0x28]
call fcn.0040aff0
cmp byte [edi + 1], 0
mov edi, dword [ebp - 0x134]
je 0x40d735
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x28]
push eax
call fcn.00408cb0
mov ecx, eax
call fcn.0041bc20
cmp byte [ebp - 0x130], 0
mov eax, dword [ebp - 0x14]
jne 0x40d785
cmp eax, 8
jb 0x40d778
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d76e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da44
push edx
push ecx
call fcn.0048d1e5
add esp, 8
xor eax, eax
mov dword [ebp - 0x134], eax
jmp 0x40d94b
mov byte [ebp - 4], 0x10
cmp eax, 8
jb 0x40d7c0
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da44
push edx
push ecx
call fcn.0048d1e5
add esp, 8
mov ecx, edi
call fcn.0040c380
test al, al
je 0x40d7ea
push str.SetProcessDEPPolicy
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7ea
push 3
call eax
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x88]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x74], 8
push ecx
cmovae eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x128]
push 0
push str.SoftwareKingsoftOffice6.0CommonResourceManager
push eax
call fcn.00422a60
cmp byte [0x513110], 0
mov byte [ebp - 4], 0x17
je 0x40d855
mov eax, 1
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x136]
push eax
push 0x4d6d4e
push str.PrometheusPreReadImage
push 1
call fcn.00432d40
add esp, 0x14
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0x18
call fcn.00423bd0
cmp byte [0x513110], 0
mov byte [ebp - 4], 0x19
je 0x40d88b
push dword [ebp - 0x134]
push dword [ebp - 0x136]
push dword [ebp - 0x138]
call fcn.00432da0
add esp, 0xc
mov byte [ebp - 4], 0x17
call fcn.0040b230
test al, al
je 0x40d8c3
cmp byte [edi + 0x14], 0
jne 0x40d8c3
cmp dword [edi + 0xc], 0xffffffff
jne 0x40d8c3
lea eax, [edi + 0x10]
push eax
push 0
push edi
push 0x40c1a0
push 0
push 0
call fcn.0049ca94
add esp, 0x18
mov dword [edi + 0xc], eax
mov byte [edi + 0x14], 1
lea ecx, [ebp - 0x12a]
call fcn.0042d7d0
lea ecx, [ebp - 0x12a]
call fcn.0041ebd0
or eax, 0xffffffff
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 0x148]
mov dword [edi + 8], eax
test eax, eax
je 0x40d92f
push str.xmain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d926
push esi
push dword [ebp - 0x14c]
push dword [ebp + 8]
call eax
add esp, 0xc
mov dword [ebp - 0x134], eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.0040b230
test al, al
je 0x40d940
lea ecx, [edi + 0xc]
call fcn.0040c5f0
lea ecx, [ebp - 0x128]
call fcn.00422db0
lea ecx, [ebp - 0x70]
call fcn.00402320
test ebx, ebx
je 0x40d978
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40d978
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x40d978
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test esi, esi
je 0x40d985
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0x40]
call fcn.00402320
mov ebx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40d9cd
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da49
push edx
push ecx
call fcn.0048d1e5
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40da1a
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40da10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da49
push edx
push ecx
call fcn.0048d1e5
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.0048d444
mov esp, ebp
pop ebp
ret 8
call fcn.00498b39
call fcn.00498b39
call fcn.00498b39
call fcn.00498b39
mov edi, edi
or edi, edx
inc eax
add bl, bh
salc
inc eax
add ah, dh
salc
inc eax
add byte [edx], al
xlatb
inc eax
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c730e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x50c3e4]
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 - 0x94], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x70]
push eax
call fcn.00408d30
xor eax, eax
mov dword [ebp - 4], 0
push str.kprometheus.dll
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040aff0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00408d60
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40db24
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40db1a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df3a
push edx
push ecx
call fcn.0048d1e5
add esp, 8
cmp dword [ebp - 0x30], 0
jne 0x40db32
or ebx, 0xffffffff
jmp 0x40de9a
call fcn.0040b100
xor esi, esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], esi
push 0x268
mov byte [ebp - 4], 5
call fcn.0048d1b5
add esp, 4
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40db75
mov ecx, eax
call fcn.004096c0
mov ebx, eax
jmp 0x40db77
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
push 0x10
mov byte [ebp - 4], 7
call fcn.0048d1b5
mov edi, eax
add esp, 4
mov dword [ebp - 0x8c], edi
test edi, edi
je 0x40dbb0
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_struct_KPromeHostStartupInfo_.0
mov dword [edi + 0xc], ebx
jmp 0x40dbb2
xor edi, edi
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x88]
mov byte [ebx], 0
mov dword [ebx + 8], 0
push eax
mov ecx, dword [ecx + 4]
mov byte [ebp - 4], 5
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], edi
call fcn.00408c90
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
call fcn.00444900
add esp, 8
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xa
call fcn.00402320
push 0
call fcn.00479d90
add esp, 4
test al, al
je 0x40dc4b
push 0x4d70a4
lea ecx, [ebp - 0x58]
call fcn.0040b1b0
test eax, eax
jne 0x40dc6d
lea eax, [ebp - 0x28]
push str.wpsoffice_ofd
push eax
call fcn.0041a0c0
add esp, 8
lea ecx, [ebx + 0x2c]
push eax
call fcn.00403810
lea ecx, [ebp - 0x28]
call fcn.00402320
mov dword [ebx + 8], 5
jmp 0x40dc6d
lea eax, [ebp - 0x28]
push str.wpsoffice
push eax
call fcn.0041a0c0
add esp, 8
lea ecx, [ebx + 0x2c]
push eax
call fcn.00403810
lea ecx, [ebp - 0x28]
call fcn.00402320
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 4]
call fcn.00408d20
mov ecx, eax
call fcn.00436af0
mov ecx, eax
call fcn.00438920
push ebx
push eax
mov byte [ebp - 4], 0xb
call fcn.00416ec0
add esp, 8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
call fcn.00403770
push ebx
call fcn.00419670
push ecx
mov dword [ebp - 0x8c], esp
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x40dccb
lock inc dword [edi + 4]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x94]
mov byte [ebp - 4], 0xc
mov ecx, dword [eax + 4]
call fcn.00408cb0
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0041bf80
cmp byte [ebx + 1], 0
je 0x40dd6f
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x4d55b4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040aff0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 4]
call fcn.00408cb0
mov ecx, eax
call fcn.0041bc20
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x40dd6f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dd65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df3f
push edx
push ecx
call fcn.0048d1e5
add esp, 8
call fcn.00479d80
test al, al
je 0x40ddb3
push 0x58
call fcn.0048d1b5
add esp, 4
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x40dda0
push ebx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.00423eb0
mov esi, eax
jmp 0x40dda2
xor esi, esi
mov ecx, esi
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x98], esi
call fcn.00425140
or eax, 0xffffffff
lea ecx, [ebp - 0x8d]
mov dword [ebp - 0x8c], eax
call fcn.0042d7d0
lea ecx, [ebp - 0x8d]
call fcn.0041ebd0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [ebp - 0x94]
mov dword [ebx + 8], eax
test eax, eax
je 0x40de1f
push str.xmain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40de16
push esi
push dword [ebp - 0x9c]
push dword [ebp + 8]
call eax
add esp, 0xc
mov dword [ebp - 0x8c], eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.0040b230
test al, al
je 0x40de5a
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x40de5a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x40de48
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402320
test edi, edi
je 0x40de87
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40de87
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x40de87
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test esi, esi
je 0x40de94
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40ded0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dec6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df44
push edx
push ecx
call fcn.0048d1e5
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x40df1a
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40df10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40df44
push edx
push ecx
call fcn.0048d1e5
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.0048d444
mov esp, ebp
pop ebp
ret 8
call fcn.00498b39
call fcn.00498b39
call fcn.00498b39
int3