Function at 0x4038a0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455f96
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x468620]
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 esi, ecx
mov dword [ebp - 0x1a0], esi
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 7
xor eax, eax
mov dword [esi], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 2
call fcn.004012c0
add esp, 4
test al, al
jne 0x40396d
mov dword [esi], 0x47
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x40392a
mov eax, dword [ebp - 0x48]
push eax
call fcn.0043a5c1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x403947
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043a5c1
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
cmp dword [ebp + 0x1c], esi
jb 0x403ff1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043a5c1
add esp, 4
jmp 0x403ff1
lea edx, [ebp - 0x48]
push edx
call fcn.00401330
add esp, 4
test al, al
jne 0x4039dc
mov dword [esi], 0x48
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x403999
mov eax, dword [ebp - 0x48]
push eax
call fcn.0043a5c1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x4039b6
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043a5c1
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
cmp dword [ebp + 0x1c], esi
jb 0x403ff1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043a5c1
add esp, 4
jmp 0x403ff1
lea edx, [ebp - 0xd4]
push edx
lea ebx, [ebp + 8]
call fcn.004053f0
mov ecx, eax
lea eax, [ebp - 0x48]
lea esi, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.00402610
push eax
mov eax, 0x45e1a0
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.004025c0
add esp, 8
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00402610
mov esi, 8
cmp dword [ebp - 0x88], esi
jb 0x403a44
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0043a5c1
add esp, 4
mov edi, 7
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
cmp dword [ebp - 0xa4], esi
jb 0x403a77
mov edx, dword [ebp - 0xb8]
push edx
call fcn.0043a5c1
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 9
cmp dword [ebp - 0xc0], esi
jb 0x403aa7
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.0043a5c1
add esp, 4
lea eax, [ebp - 0x64]
xor edx, edx
push eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
call fcn.00434b20
add esp, 4
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.00435b0c
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x1b4]
cmp dword [edx], 6
jl 0x403cf2
mov eax, dword [ebp - 0x1a0]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x17c], ebx
mov word [ebp - 0x18c], cx
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], ebx
mov byte [ebp - 0x150], bl
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov word [ebp - 0x130], dx
push ebx
mov byte [ebp - 4], 0xc
push 0x45e19a
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x134], ebx
call fcn.00401ba0
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18c]
call fcn.004017b0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x130]
call fcn.004017b0
lea edx, [ebp - 0x1a0]
push edx
push ebx
lea eax, [ebp - 0x190]
push eax
push 0x404020
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x403c43
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403c1a
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x194], 1
jne 0x403c43
lea esi, [ebp - 0x190]
call fcn.00403830
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.004358f4
lea ecx, [ebp - 0x64]
call fcn.00439070
lea ecx, [ebp - 0x80]
call fcn.00401460
lea ecx, [ebp - 0x48]
call fcn.00401460
lea ecx, [ebp - 0x2c]
call fcn.00401460
lea ecx, [ebp + 8]
call fcn.00401460
mov al, 1
jmp 0x403ff3
lea ecx, [ebp - 0x194]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x403bc1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x190]
call fcn.00403830
jmp 0x403fba
lea esi, [ebp - 0x190]
call fcn.00403830
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.004358f4
cmp dword [ebp - 0x50], 0x10
jb 0x403c6f
mov edx, dword [ebp - 0x64]
push edx
call fcn.0043a5c1
add esp, 4
mov esi, 8
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], esi
jb 0x403c92
mov eax, dword [ebp - 0x80]
push eax
call fcn.0043a5c1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x34], esi
jb 0x403caf
mov edx, dword [ebp - 0x48]
push edx
call fcn.0043a5c1
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], esi
jb 0x403ccc
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0043a5c1
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp + 0x1c], esi
jb 0x403ff1
mov eax, dword [ebp + 8]
push eax
call fcn.0043a5c1
add esp, 4
jmp 0x403ff1
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x403fae
lea ecx, [ebp - 0x1a4]
push ecx
push 0x45dfec
push 1
push ebx
push 0x45dffc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x403d36
mov edx, dword [ebp - 0x1a0]
mov dword [edx], 0x3e
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x403fba
lea eax, [ebp - 0x10c]
push eax
lea ebx, [ebp + 8]
call fcn.004053f0
mov ecx, eax
lea eax, [ebp - 0x48]
lea esi, [ebp - 0xf0]
mov byte [ebp - 4], 0xd
call fcn.00402610
push eax
mov eax, 0x45e1a0
lea edi, [ebp - 0xb8]
mov byte [ebp - 4], 0xe
call fcn.004025c0
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0xd4]
mov byte [ebp - 4], 0xf
call fcn.00402610
push eax
mov eax, 0x45e1a8
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 0x10
call fcn.004025c0
add esp, 0xc
mov ecx, esi
call fcn.00401460
lea ecx, [ebp - 0xb8]
call fcn.00401460
lea ecx, [ebp - 0xf0]
call fcn.00401460
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0x15
call fcn.00401460
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax]
lea edx, [ebp - 0x194]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jns 0x403e0b
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx], 0x3d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, edi
call fcn.00401460
jmp 0x403fba
mov eax, dword [ebp - 0x194]
lea edx, [ebp - 0x198]
push edx
lea edx, [ebp - 0x19c]
push edx
mov dword [ebp - 0x198], 0
mov ecx, dword [eax]
push 5
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x403ee2
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x198]
test esi, esi
je 0x403ee2
nop
mov eax, dword [ebp - 0x9c]
dec esi
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0x198], esi
jae 0x403e6c
lea eax, [ebp - 0x9c]
mov ecx, dword [ebp - 0x19c]
mov edi, dword [ecx + esi*4]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403e9d
test dx, dx
je 0x403e99
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403e9d
add eax, 4
add ecx, 4
test dx, dx
jne 0x403e77
xor eax, eax
jmp 0x403ea2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403f14
push edi
call ebx
mov esi, dword [ebp - 0x198]
test esi, esi
jne 0x403e50
mov edx, dword [ebp - 0x19c]
push edx
call ebx
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax]
lea edx, [ebp - 0x198]
push edx
lea edx, [ebp - 0x19c]
push edx
push 5
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jns 0x403e41
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x9c]
call fcn.00401460
jmp 0x403fba
test esi, esi
je 0x403f35
mov ecx, dword [ebp - 0x19c]
mov eax, dword [ecx + esi*4]
dec esi
push eax
mov dword [ebp - 0x198], esi
call ebx
mov esi, dword [ebp - 0x198]
test esi, esi
jne 0x403f18
mov edx, dword [ebp - 0x19c]
mov eax, dword [edx]
push eax
call ebx
mov ecx, dword [ebp - 0x19c]
push ecx
call ebx
mov eax, dword [ebp - 0x1a4]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x9c]
call fcn.00401460
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.004358f4
cmp dword [ebp - 0x50], 0x10
jb 0x403f97
mov eax, dword [ebp - 0x64]
push eax
call fcn.0043a5c1
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jmp 0x403bf3
mov eax, dword [ebp - 0x1a0]
mov dword [eax], 0x3e
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.004358f4
lea ecx, [ebp - 0x64]
call fcn.00439070
lea ecx, [ebp - 0x80]
call fcn.00401460
lea ecx, [ebp - 0x48]
call fcn.00401460
lea ecx, [ebp - 0x2c]
call fcn.00401460
lea ecx, [ebp + 8]
call fcn.00401460
xor al, al
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.0043a0d5
mov esp, ebp
pop ebp
ret