Function at 0x413d68
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00413d68
xor esi, esi
xor edi, edi
mov ecx, 0x70
push esi
dec ecx
jne 0x413d84
mov ebx, 0x421908
mov eax, 2
call fcn.00415d9a
push 0
push 0x19
push 8
push 0x1100000
push 0
mov ebx, 0x421908
call fcn.00415ad0
push 0
push 0xa
push 4
push 0x12e0000
push 0
lea ebx, [ebp - 0x244]
call fcn.00415ad0
mov edx, 0x421af8
call fcn.0041ef8b
mov ebx, 0x4218bc
call fcn.0041e3d6
mov dword [0x4218a0], 0
mov dword [0x4218a4], 0
mov dword [0x4218a8], 0
mov dword [str.r_die_vollst], 0
mov dword [0x4218b0], 0
mov dword [0x4218d8], 0
mov edi, 0
mov dword [ebp - 0x1b4], 0
xor eax, eax
call fcn.0041c968
call fcn.0041ef59
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c0], 1
jmp 0x41406f
xor eax, eax
call fcn.0041c968
mov ecx, dword [ebp - 0x1c0]
mov eax, 1
call fcn.00418b01
mov edx, 0x421990
call fcn.0041ef8b
call fcn.0041e72f
jne 0x413eb4
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x413eaf
mov edx, dword [ebp - 0x9c]
call fcn.0041ef74
mov edx, 0x421990
call fcn.0041ef8b
call fcn.0041e69a
lea ebx, [ebp - 0x9c]
call fcn.0041e3d6
jmp 0x413f3e
xor eax, eax
call fcn.0041c968
mov ecx, dword [ebp - 0x1c0]
mov eax, 1
call fcn.00418b01
mov edx, 0x421998
call fcn.0041ef8b
call fcn.0041e72f
jne 0x413f0c
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x413efd
mov dword [ebp - 0x1b8], 0
jmp 0x413f07
mov dword [ebp - 0x1b8], 1
jmp 0x413f3e
mov edx, dword [ebp - 0x9c]
call fcn.0041ef74
xor eax, eax
call fcn.0041c968
mov ecx, dword [ebp - 0x1c0]
mov eax, 1
call fcn.00418b01
call fcn.0041e69a
lea ebx, [ebp - 0x9c]
call fcn.0041e3d6
cmp dword [ebp - 0x1b8], 0
mov eax, 0xffffffff
je 0x413f4d
inc eax
xor ecx, ecx
xchg ecx, eax
call fcn.0041c968
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x1c0]
mov eax, 1
call fcn.00418b01
mov edx, 0x421990
call fcn.0041ef8b
call fcn.0041e72f
mov eax, 0xffffffff
je 0x413f7f
inc eax
and eax, dword [ebp - 0x30]
test eax, eax
jne 0x413f9e
xor eax, eax
call fcn.0041c968
call fcn.0041ef59
cmp eax, dword [ebp - 0x1c0]
jne 0x414069
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x413fcf
mov edx, 0x422c7c
call fcn.0041ef8b
mov eax, 0x10
mov edx, 0x422c94
call fcn.0041ef8b
call fcn.00416284
jmp 0x4144b7
mov edx, dword [ebp - 0x9c]
call fcn.0041ef74
mov edx, 0x421af8
call fcn.0041ef8b
call fcn.0041e72f
je 0x414069
mov edx, dword [ebp - 0x9c]
call fcn.0041ef74
mov eax, dword [ebp - 0x1bc]
shl eax, 2
add eax, dword [ebp - 0x244]
mov ebx, eax
call fcn.0041e3d6
mov edx, 0x421af8
call fcn.0041ef8b
lea ebx, [ebp - 0x9c]
call fcn.0041e3d6
inc dword [ebp - 0x1bc]
mov eax, 1
lea ebx, [ebp - 0x244]
call fcn.004187c3
cmp eax, dword [ebp - 0x1bc]
jge 0x414069
push 0
mov eax, 9
add eax, dword [ebp - 0x1bc]
push eax
push 4
push 0x12e0000
push 0
lea ebx, [ebp - 0x244]
call fcn.00415bfa
inc dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x1c0]
cmp eax, dword [ebp - 0x1c8]
jle 0x413e50
mov eax, dword [ebp - 0x1bc]
sub eax, 1
mov dword [ebp - 0x1d0], eax
mov esi, 0
jmp 0x414293
mov eax, esi
mov ebx, dword [ebp - 0x244]
mov edx, dword [ebx + eax*4]
call fcn.0041ef74
mov eax, 1
mov edx, 0x421ed8
call fcn.0041ef8b
call fcn.0041ca70
lea ebx, [ebp - 0x50]
call fcn.0041e450
mov edx, 0x422cac
call fcn.0041ef8b
mov edx, dword [ebp - 0x50]
call fcn.0041ef74
call fcn.0041e72f
jne 0x414100
mov eax, dword [ebp - 0x50]
call fcn.0041c82d
mov dword [0x4218a0], 1
jmp 0x414291
mov edx, 0x422cb4
call fcn.0041ef8b
mov edx, dword [ebp - 0x50]
call fcn.0041ef74
call fcn.0041e72f
jne 0x414134
mov eax, dword [ebp - 0x50]
call fcn.0041c82d
mov dword [0x4218a4], 1
jmp 0x414291
mov edx, 0x422cbc
call fcn.0041ef8b
mov edx, dword [ebp - 0x50]
call fcn.0041ef74
call fcn.0041e72f
jne 0x414168
mov eax, dword [ebp - 0x50]
call fcn.0041c82d
mov dword [0x4218a8], 1
jmp 0x414291
mov edx, 0x422cc4
call fcn.0041ef8b
mov edx, dword [ebp - 0x50]
call fcn.0041ef74
call fcn.0041e72f
jne 0x414198
mov eax, dword [ebp - 0x50]
call fcn.0041c82d
mov edi, 1
jmp 0x414291
mov edx, 0x422cd4
call fcn.0041ef8b
mov edx, dword [ebp - 0x50]
call fcn.0041ef74
call fcn.0041e72f
jne 0x4141cc
mov eax, dword [ebp - 0x50]
call fcn.0041c82d
mov dword [ebp - 0x1b4], 1
jmp 0x414291
mov edx, 0x422ce4
call fcn.0041ef8b
mov edx, dword [ebp - 0x50]
call fcn.0041ef74
call fcn.0041e72f
jne 0x414200
mov eax, dword [ebp - 0x50]
call fcn.0041c82d
mov dword [str.r_die_vollst], 1
jmp 0x414291
mov edx, 0x422cf0
call fcn.0041ef8b
mov edx, dword [ebp - 0x50]
call fcn.0041ef74
call fcn.0041e72f
jne 0x414234
mov eax, dword [ebp - 0x50]
call fcn.0041c82d
mov dword [0x4218b0], 1
jmp 0x414291
mov edx, 0x422d00
call fcn.0041ef8b
mov edx, dword [ebp - 0x50]
call fcn.0041ef74
call fcn.0041e72f
jne 0x414289
mov eax, dword [ebp - 0x50]
call fcn.0041c82d
mov eax, esi
mov ebx, dword [ebp - 0x244]
mov edx, dword [ebx + eax*4]
call fcn.0041ef74
mov eax, 1
mov edx, 0x421ed8
call fcn.0041ef8b
call fcn.0041cb41
mov ebx, 0x4218bc
call fcn.0041e3d6
jmp 0x414291
mov eax, dword [ebp - 0x50]
call fcn.0041c82d
inc esi
mov eax, esi
cmp eax, dword [ebp - 0x1d0]
jle 0x4140a0
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLCID]
fldcw word [ebp - 0x10]
movzx eax, al
mov byte [0x4218b4], al
mov edx, 0x422d0c
call fcn.0041ef8b
lea ebx, [ebp - 0x1a8]
mov ecx, 0x104
call fcn.0041ee0f
lea ebx, [ebp - 0x1a8]
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
fldcw word [ebp - 0x10]
mov dword [0x4218c8], eax
cmp dword [0x4218c8], 0
je 0x41430a
push 0xb7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x414314
mov dword [0x4218d8], 1
push dword [0x4218c8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
cmp dword [0x4218d8], 1
jne 0x414381
cmp edi, 0
jne 0x414381
movzx eax, byte [0x4218b4]
call fcn.0041e3a1
fstp xword [ebp - 0x50]
mov edx, 0x422d24
call fcn.0041ef8b
lea ebx, [ebp - 0x1ac]
call fcn.0041e3d6
mov edx, dword [ebp - 0x1ac]
call fcn.0041ef74
mov eax, 0x10
mov edx, 0x42236c
call fcn.0041ef8b
call fcn.00416284
jmp 0x4144b7
cmp dword [ebp - 0x1b4], 0
jne 0x41442d
mov edx, 0x422d84
call fcn.0041ef8b
lea ebx, [ebp - 0x1a8]
mov ecx, 0x104
call fcn.0041ee0f
lea ebx, [ebp - 0x1a8]
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
fldcw word [ebp - 0x10]
mov dword [0x4218c8], eax
cmp dword [0x4218c8], 0
je 0x4143e5
push 0xb7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jne 0x41442d
movzx eax, byte [0x4218b4]
call fcn.0041e3a1
fstp xword [ebp - 0x50]
mov edx, 0x422d9c
call fcn.0041ef8b
lea ebx, [ebp - 0x1ac]
call fcn.0041e3d6
mov edx, dword [ebp - 0x1ac]
call fcn.0041ef74
mov eax, 0x10
mov edx, 0x42236c
call fcn.0041ef8b
call fcn.00416284
jmp 0x4144b7
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
fldcw word [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [0x421870], eax
call fcn.00414d49
mov ebx, 0x421874
push ebx
push 0
push 0
mov eax, 0x412a82
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
fldcw word [ebp - 0x10]
mov eax, 0x41156a
push eax
push 0
push 0x64
push dword [0x421870]
call fcn.00401d44
mov ebx, 0x4218fc
push ebx
call sym.download.exe_CLOSECOM
push dword [0x4218c8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
mov eax, dword [0x4218d4]
test eax, eax
je 0x4144ad
mov dword [ebp - 0x98], 1
jmp 0x4144b7
mov dword [ebp - 0x98], 0
call fcn.0041ee65
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10