Function at 0x10001640
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001e2fe
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x10028740]
xor eax, esp
mov dword [esp + 0x16c], eax
push esi
push edi
mov eax, dword [0x10028740]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
cmp byte [0x1002ab80], 0
jne 0x10001ded
lea ecx, [esp + 0x12c]
mov byte [0x1002ab80], 1
call fcn.100013e0
mov dword [esp + 0x188], 0
push 0x1002ab88
mov byte [0x1002ab81], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
movdqa xmm0, xmmword [0x10025960]
mov esi, dword [0x1002ab84]
push 0x10025778
push 0x66
push esi
movdqa xmmword [0x1002aba0], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x10001721
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001721
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10001721
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
jmp 0x10001723
xor esi, esi
push esi
call fcn.1000670c
add esp, 4
mov edi, eax
mov dword [esp + 0x1c], edi
push esi
push dword [esp + 0x18]
push edi
call fcn.10009130
add esp, 0xc
mov edx, esi
mov ecx, edi
push dword [edi]
call fcn.100066a0
mov esi, dword [edi + 4]
add esp, 4
add edi, 8
lea eax, [esi + 4]
mov ecx, dword [edi + esi]
add eax, edi
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0xa0], eax
mov edx, dword [eax + ecx]
mov dword [esp + 0x24], edx
call fcn.1000670c
add esp, 4
mov dword [esp + 0x18], eax
push esi
mov esi, eax
push edi
push esi
call fcn.10009130
add esp, 0xc
test esi, esi
je 0x10001d9d
mov edi, dword [esp + 0x9c]
test edi, edi
je 0x10001d9d
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 4]
add eax, edi
je 0x10001d9d
mov edx, dword [esp + 0x20]
push ecx
mov ecx, eax
call fcn.10006620
mov ecx, dword [esi]
add esp, 4
mov eax, dword [esi + 4]
mov edx, ecx
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], eax
call fcn.10001360
push eax
mov edx, str.clink
mov byte [esp + 0x18c], 1
lea ecx, [esp + 0xe8]
call fcn.100026d0
add esp, 4
push str..exe
mov edx, eax
mov byte [esp + 0x18c], 2
lea ecx, [esp + 0x100]
call fcn.10002760
add esp, 4
cmp dword [esp + 0xf8], 0x10
jb 0x1000182c
push dword [esp + 0xe4]
call fcn.100070f6
add esp, 4
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], 0
mov byte [esp + 0xe4], 0
mov byte [esp + 0x188], 5
cmp dword [esp + 0x50], 0x10
jb 0x10001865
push dword [esp + 0x3c]
call fcn.100070f6
add esp, 4
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.10001360
push eax
mov edx, str.clinkMsg
mov byte [esp + 0x18c], 6
lea ecx, [esp + 0xa0]
call fcn.100026d0
add esp, 4
push str..exe
mov edx, eax
mov byte [esp + 0x18c], 7
lea ecx, [esp + 0x118]
call fcn.10002760
add esp, 4
cmp dword [esp + 0xb0], 0x10
jb 0x100018de
push dword [esp + 0x9c]
call fcn.100070f6
add esp, 4
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
mov byte [esp + 0x188], 0xa
cmp dword [esp + 0x38], 0x10
jb 0x10001917
push dword [esp + 0x24]
call fcn.100070f6
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x104]
mov dword [esp + 0x40], 0xf
push eax
lea ecx, [esp + 0xc0]
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], 0
mov byte [esp + 0xc0], 0
call fcn.10002180
push 0xffffffffffffffff
mov byte [esp + 0x18c], 0xb
lea eax, [esp + 0x118]
push 0
push eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
call fcn.10002180
mov byte [esp + 0x188], 0xc
lea ecx, [esp + 0xb4]
cmp dword [esp + 0xc8], 0x10
mov byte [esp + 0x12], 1
cmovae ecx, dword [esp + 0xb4]
call fcn.10004090
test al, al
jne 0x100019d3
mov byte [esp + 0x13], al
jmp 0x10001a27
cmp dword [esp + 0xc8], 0x10
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x9c]
cmovae edx, dword [esp + 0xb4]
call fcn.10004240
mov esi, dword [esp + 0x9c]
test esi, esi
jne 0x10001a08
mov byte [esp + 0x13], 0
jmp 0x10001a27
push dword [esp + 0xa0]
push esi
push dword [esp + 0x1c]
push edi
call fcn.10001490
push esi
mov byte [esp + 0x27], al
call fcn.100077e0
add esp, 0x14
cmp dword [esp + 0x18], 0
jne 0x10001ab5
cmp dword [esp + 0xe0], 0x10
lea ecx, [esp + 0xcc]
cmovae ecx, dword [esp + 0xcc]
call fcn.10004090
test al, al
jne 0x10001a58
mov byte [esp + 0x12], al
jmp 0x10001ab5
cmp dword [esp + 0xe0], 0x10
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x9c]
cmovae edx, dword [esp + 0xcc]
call fcn.10004240
mov esi, dword [esp + 0x9c]
test esi, esi
jne 0x10001a8d
mov byte [esp + 0x12], 0
jmp 0x10001ab5
push dword [esp + 0xa0]
mov eax, dword [esp + 0x18]
push esi
push dword [esp + 0x28]
add eax, 4
add eax, edi
push eax
call fcn.10001490
push esi
mov byte [esp + 0x26], al
call fcn.100077e0
add esp, 0x14
cmp byte [esp + 0x13], 0
jne 0x10001b25
sub esp, 0x18
lea eax, [esp + 0x114]
mov ecx, esp
push eax
call fcn.10001ec0
call fcn.10006430
add esp, 0x18
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0xc8], 0x10
lea edx, [esp + 0xb4]
push ecx
push dword [esp + 0x18]
cmovae edx, dword [esp + 0xbc]
lea ecx, [esp + 0x5c]
push edi
call fcn.10004490
add esp, 0xc
push eax
lea ecx, [esp + 0x130]
mov byte [esp + 0x18c], 0xd
call fcn.10001e60
lea ecx, [esp + 0x54]
call fcn.10001e10
cmp byte [esp + 0x12], 0x5a
jne 0x10001b3d
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push dword [esp + 0x1c]
call fcn.100077e0
xorps xmm0, xmm0
mov dword [esp + 0xf0], 0
movq qword [esp + 0xe8], xmm0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
sub esp, 0x14
mov byte [esp + 0x1a0], 0xe
mov ecx, esp
lea eax, [esp + 0x114]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10002180
lea ecx, [esp + 0xfc]
call fcn.10006250
mov eax, dword [esp + 0x100]
add esp, 0x18
mov esi, dword [esp + 0xe4]
sub eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, 0xfffffffc
jne 0x10001c00
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xbc]
mov ecx, 0x100295b0
push eax
call fcn.10002180
push 0
push 0
push 0
push 0x100015c0
push 0
push 0
call edi
cmp dword [esp + 0x18], 0
jne 0x10001cb4
xorps xmm0, xmm0
mov dword [esp + 0xa4], 0
movq qword [esp + 0x9c], xmm0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
sub esp, 0x18
mov byte [esp + 0x1a0], 0xf
lea eax, [esp + 0x12c]
mov ecx, esp
push eax
call fcn.10001ec0
lea ecx, [esp + 0xb4]
call fcn.10006250
mov eax, dword [esp + 0xb8]
add esp, 0x18
sub eax, dword [esp + 0x9c]
test eax, 0xfffffffc
jne 0x10001ca8
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xd4]
mov ecx, 0x100295c8
push eax
call fcn.10002180
push 0
push 0
push 0
push 0x10001600
push 0
push 0
call edi
lea ecx, [esp + 0x9c]
call fcn.10001f20
test esi, esi
je 0x10001cc1
push esi
call fcn.100070f6
add esp, 4
cmp dword [esp + 0xe0], 0x10
jb 0x10001cda
push dword [esp + 0xcc]
call fcn.100070f6
add esp, 4
cmp dword [esp + 0xc8], 0x10
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
jb 0x10001d11
push dword [esp + 0xb4]
call fcn.100070f6
add esp, 4
cmp dword [esp + 0x128], 0x10
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], 0
mov byte [esp + 0xb4], 0
jb 0x10001d48
push dword [esp + 0x114]
call fcn.100070f6
add esp, 4
cmp dword [esp + 0x110], 0x10
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], 0
mov byte [esp + 0x114], 0
jb 0x10001d7f
push dword [esp + 0xfc]
call fcn.100070f6
add esp, 4
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
cmp dword [esp + 0x15c], 0x10
jb 0x10001db6
push dword [esp + 0x148]
call fcn.100070f6
add esp, 4
cmp dword [esp + 0x144], 0x10
mov dword [esp + 0x15c], 0xf
mov dword [esp + 0x158], 0
mov byte [esp + 0x148], 0
jb 0x10001ded
push dword [esp + 0x130]
call fcn.100070f6
add esp, 4
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.100070e7
mov esp, ebp
pop ebp
ret