Function at 0x413d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c639e
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x521340]
mov edi, dword [ebp + 0xc]
lea esi, [ecx + 1]
mov eax, esi
imul eax, ecx
mov dword [ebp - 0x390], edi
cdq
mov edi, 0xe
idiv edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x374], ebx
cmp edx, 0xb
jne 0x413d94
sub ecx, 0
je 0x413d8a
dec ecx
je 0x413d7e
mov dword [0x521340], esi
jmp 0x413d94
mov dword [0x521340], 0
jmp 0x413d94
mov dword [0x521340], 2
push 0
lea ecx, [ebp - 0x3a0]
call fcn.00443cd0
push str.success
lea ecx, [ebp - 0x38c]
mov dword [ebp - 4], 0
call fcn.00443c90
lea eax, [ebp - 0x38c]
push eax
push 0x4da4ec
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 1
call fcn.00444170
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 0
call fcn.00443ee0
call fcn.004177d0
test al, al
jne 0x413e15
mov ebx, dword [0x521340]
xor esi, esi
mov edi, ebx
lea esp, [esp]
mov eax, edi
lea ecx, [ebx + esi]
cdq
inc esi
idiv ecx
dec edi
cmp esi, 0x34
jb 0x413e00
mov ebx, dword [ebp - 0x374]
push str.callbackId
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004452a0
test al, al
jne 0x413ede
push str.execFile_callbackId_not_exist
lea ecx, [ebp - 0x374]
call fcn.00401ff0
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x350]
push eax
mov byte [ebp - 4], 3
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 4
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 5
call fcn.00444170
lea ecx, [ebp - 0x38c]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 4
call fcn.00443ee0
cmp dword [ebp - 0x33c], 0x10
jb 0x413eaf
push dword [ebp - 0x350]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x374]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x413ed5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x414053
push 0x10
call fcn.004a6c5d
mov esi, eax
add esp, 4
mov dword [ebp - 0x378], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x413f03
push 0
mov ecx, esi
call fcn.00443cd0
jmp 0x413f05
xor esi, esi
push ebx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00443f80
lea eax, [ebp - 0x37c]
push eax
push 0
push esi
push 0x41a6a0
push 0
push 0
mov dword [ebp - 0x37c], 0
call fcn.004a8e8c
add esp, 0x18
test eax, eax
jne 0x414042
test esi, esi
je 0x413f52
mov ecx, esi
call fcn.00443ee0
push esi
call fcn.004a6c2e
add esp, 4
call fcn.004a86d6
push dword [eax]
lea eax, [ebp - 0x378]
push eax
call fcn.0043f5e0
add esp, 8
push eax
lea eax, [ebp - 0x374]
push str.execFile_beginthreadex_
push eax
mov byte [ebp - 4], 7
call fcn.0040b870
add esp, 0xc
mov edx, dword [ebp - 0x378]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 9
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x413fa7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x350]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 0xa
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 0xb
call fcn.00444170
lea ecx, [ebp - 0x38c]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x38c]
mov byte [ebp - 4], 0xa
call fcn.00443ee0
cmp dword [ebp - 0x33c], 0x10
jb 0x414015
push dword [ebp - 0x350]
call fcn.004a6c2e
add esp, 4
call fcn.004177f0
test al, al
jne 0x414024
dec dword [0x521528]
mov edx, dword [ebp - 0x374]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x413ecb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
mov eax, dword [0x521340]
imul eax, eax
cdq
mov ecx, 0x11
idiv ecx
cmp edx, 3
jne 0x41407f
mov ebx, dword [0x521340]
xor esi, esi
mov edi, ebx
inc esi
dec edi
cmp esi, 0x95
jb 0x414072
or ebx, 0xffffffff
lea ecx, [ebp - 0x370]
call fcn.00445f40
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0x10
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x374], esi
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 0x11
call fcn.00448e50
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x12
jb 0x4140cf
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x41417c
xor ecx, ecx
jmp 0x414194
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x378], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414187
sub ecx, dword [ebp - 0x378]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x37c]
push eax
call fcn.0044ff60
add esp, 0x1c
mov ecx, dword [eax]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 0x13
cmp edx, edi
je 0x414213
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4141fe
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4141fe
push edx
call fcn.00404880
add esp, 4
mov dword [ebp - 0x378], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4141f3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x378]
lea esi, [eax + 0x10]
mov dword [ebp - 0x374], esi
jmp 0x414213
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x374]
call fcn.004097a0
mov esi, dword [ebp - 0x374]
mov edx, dword [ebp - 0x37c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x12
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414236
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x33c], 0x10
mov byte [ebp - 4], 0x11
jb 0x414251
push dword [ebp - 0x350]
call fcn.004a6c2e
add esp, 4
mov edi, dword [ebp - 0x390]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x414272
call fcn.0040c350
mov dword [edi + 8], eax
mov ecx, dword [0x521340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 5
jne 0x4142b0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x521340]
mov edx, 7
test eax, eax
cmove ecx, edx
mov dword [0x521340], ecx
add esi, 0xfffffff0
mov byte [ebp - 4], 0x10
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4142cb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x358], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x370], 0x4da4e4
jb 0x4142f0
push dword [ebp - 0x36c]
call fcn.004a6c2e
add esp, 4
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x358], 0xf
mov dword [ebp - 0x35c], 0
mov byte [ebp - 0x36c], 0
call fcn.00446040
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 4], 0xffffffff
call fcn.00443ee0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret