Function at 0x4038d0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f546
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x461840]
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.004012a0
add esp, 4
test al, al
jne 0x40399d
mov dword [esi], 0x47
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x40395a
mov eax, dword [ebp - 0x48]
push eax
call fcn.00435ff1
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 0x403977
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00435ff1
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 0x404021
mov ecx, dword [ebp + 8]
push ecx
call fcn.00435ff1
add esp, 4
jmp 0x404021
lea edx, [ebp - 0x48]
push edx
call fcn.00401310
add esp, 4
test al, al
jne 0x403a0c
mov dword [esi], 0x48
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x4039c9
mov eax, dword [ebp - 0x48]
push eax
call fcn.00435ff1
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 0x4039e6
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00435ff1
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 0x404021
mov ecx, dword [ebp + 8]
push ecx
call fcn.00435ff1
add esp, 4
jmp 0x404021
lea edx, [ebp - 0xd4]
push edx
lea ebx, [ebp + 8]
call fcn.00405580
mov ecx, eax
lea eax, [ebp - 0x48]
lea esi, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.00402530
push eax
mov eax, 0x4572e8
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.004024e0
add esp, 8
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.00402530
mov esi, 8
cmp dword [ebp - 0x88], esi
jb 0x403a74
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00435ff1
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 0x403aa7
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00435ff1
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 0x403ad7
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.00435ff1
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.0042eccf
add esp, 4
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.004300cc
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x1b4]
cmp dword [edx], 6
jl 0x403d22
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 0x4572e2
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.004017c0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x130]
call fcn.004017c0
lea edx, [ebp - 0x1a0]
push edx
push ebx
lea eax, [ebp - 0x190]
push eax
push 0x404050
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x403c73
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403c4a
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 0x403c73
lea esi, [ebp - 0x190]
call fcn.00403860
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.0042feb4
lea ecx, [ebp - 0x64]
call fcn.004013f0
lea ecx, [ebp - 0x80]
call fcn.00401470
lea ecx, [ebp - 0x48]
call fcn.00401470
lea ecx, [ebp - 0x2c]
call fcn.00401470
lea ecx, [ebp + 8]
call fcn.00401470
mov al, 1
jmp 0x404023
lea ecx, [ebp - 0x194]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x403bf1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x190]
call fcn.00403860
jmp 0x403fea
lea esi, [ebp - 0x190]
call fcn.00403860
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.0042feb4
cmp dword [ebp - 0x50], 0x10
jb 0x403c9f
mov edx, dword [ebp - 0x64]
push edx
call fcn.00435ff1
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 0x403cc2
mov eax, dword [ebp - 0x80]
push eax
call fcn.00435ff1
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 0x403cdf
mov edx, dword [ebp - 0x48]
push edx
call fcn.00435ff1
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 0x403cfc
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00435ff1
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 0x404021
mov eax, dword [ebp + 8]
push eax
call fcn.00435ff1
add esp, 4
jmp 0x404021
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x403fde
lea ecx, [ebp - 0x1a4]
push ecx
push 0x457134
push 1
push ebx
push 0x457144
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x403d66
mov edx, dword [ebp - 0x1a0]
mov dword [edx], 0x3e
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x403fea
lea eax, [ebp - 0x10c]
push eax
lea ebx, [ebp + 8]
call fcn.00405580
mov ecx, eax
lea eax, [ebp - 0x48]
lea esi, [ebp - 0xf0]
mov byte [ebp - 4], 0xd
call fcn.00402530
push eax
mov eax, 0x4572e8
lea edi, [ebp - 0xb8]
mov byte [ebp - 4], 0xe
call fcn.004024e0
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0xd4]
mov byte [ebp - 4], 0xf
call fcn.00402530
push eax
mov eax, 0x4572f0
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 0x10
call fcn.004024e0
add esp, 0xc
mov ecx, esi
call fcn.00401470
lea ecx, [ebp - 0xb8]
call fcn.00401470
lea ecx, [ebp - 0xf0]
call fcn.00401470
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0x15
call fcn.00401470
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 0x403e3b
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.00401470
jmp 0x403fea
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 0x403f12
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x198]
test esi, esi
je 0x403f12
nop
mov eax, dword [ebp - 0x9c]
dec esi
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0x198], esi
jae 0x403e9c
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 0x403ecd
test dx, dx
je 0x403ec9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403ecd
add eax, 4
add ecx, 4
test dx, dx
jne 0x403ea7
xor eax, eax
jmp 0x403ed2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403f44
push edi
call ebx
mov esi, dword [ebp - 0x198]
test esi, esi
jne 0x403e80
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 0x403e71
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.00401470
jmp 0x403fea
test esi, esi
je 0x403f65
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 0x403f48
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.00401470
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.0042feb4
cmp dword [ebp - 0x50], 0x10
jb 0x403fc7
mov eax, dword [ebp - 0x64]
push eax
call fcn.00435ff1
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jmp 0x403c23
mov eax, dword [ebp - 0x1a0]
mov dword [eax], 0x3e
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xa
call fcn.0042feb4
lea ecx, [ebp - 0x64]
call fcn.004013f0
lea ecx, [ebp - 0x80]
call fcn.00401470
lea ecx, [ebp - 0x48]
call fcn.00401470
lea ecx, [ebp - 0x2c]
call fcn.00401470
lea ecx, [ebp + 8]
call fcn.00401470
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.00435af5
mov esp, ebp
pop ebp
ret