Function at 0x418b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8299
mov eax, dword fs:[0]
push eax
sub esp, 0x400
mov eax, dword [0x524ee0]
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 [0x526340]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3fc], eax
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0x14
idiv ecx
mov edi, dword [ebp + 8]
cmp edx, 6
jne 0x418b8a
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push 0
lea ecx, [ebp - 0x40c]
call fcn.00444480
push str.success
lea ecx, [ebp - 0x3f8]
mov dword [ebp - 4], 0
call fcn.00444440
lea eax, [ebp - 0x3f8]
push eax
push 0x4dfc64
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], 1
call fcn.00444920
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x3f8]
mov byte [ebp - 4], 0
call fcn.00444690
mov byte [ebp - 4], 2
call fcn.004188c0
test al, al
jne 0x418c03
push 0xe1
push 0xe0
push str._d__d_n
call fcn.004aa80e
add esp, 0xc
push str.callbackId
mov ecx, edi
call fcn.00445a20
test al, al
jne 0x418d11
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3d8], eax
mov eax, str.readFile_callbackId_not_exist
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x418c5e
movzx esi, ax
push 0
push esi
call fcn.00403b10
add esp, 8
test eax, eax
je 0x418c70
push esi
push eax
lea ecx, [ebp - 0x3d8]
call fcn.004074c0
jmp 0x418c70
push 0x1d
push str.readFile_callbackId_not_exist
lea ecx, [ebp - 0x3d8]
call fcn.00409670
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3b4]
push eax
mov byte [ebp - 4], 4
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x3f8]
mov byte [ebp - 4], 5
call fcn.004443a0
push 0x4dfc64
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], 6
call fcn.00444920
lea ecx, [ebp - 0x3f8]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x3f8]
mov byte [ebp - 4], 5
call fcn.00444690
cmp dword [ebp - 0x3a0], 0x10
jb 0x418ce2
push dword [ebp - 0x3b4]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x3d8]
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 0x418d08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x418f4a
push 0x10
call fcn.004a834d
mov esi, eax
add esp, 4
mov dword [ebp - 0x3e8], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x418d36
push 0
mov ecx, esi
call fcn.00444480
jmp 0x418d38
xor esi, esi
push edi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00444730
lea eax, [ebp - 0x3e4]
push eax
push 0
push esi
push 0x419270
push 0
push 0
mov dword [ebp - 0x3e4], 0
call fcn.004aa5cc
add esp, 0x18
test eax, eax
jne 0x418e66
test esi, esi
je 0x418d85
mov ecx, esi
call fcn.00444690
push esi
call fcn.004a831e
add esp, 4
call fcn.004a9e16
push dword [eax]
lea eax, [ebp - 0x3dc]
push eax
call fcn.0043fd80
add esp, 8
push eax
lea eax, [ebp - 0x3d8]
push str.readFile_beginthreadex_
push eax
mov byte [ebp - 4], 8
call fcn.0040b7a0
add esp, 0xc
mov edx, dword [ebp - 0x3dc]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x418dda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3b4]
push eax
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x3f8]
mov byte [ebp - 4], 0xb
call fcn.004443a0
push 0x4dfc64
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], 0xc
call fcn.00444920
lea ecx, [ebp - 0x3f8]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x3f8]
mov byte [ebp - 4], 0xb
call fcn.00444690
cmp dword [ebp - 0x3a0], 0x10
jb 0x418e48
push dword [ebp - 0x3b4]
call fcn.004a831e
add esp, 4
mov edx, dword [ebp - 0x3d8]
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 0x418cfe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [0x526340]
lea ecx, [ebx + 2]
lea eax, [ebx + 1]
imul ecx, eax
imul ecx, ebx
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x418e8c
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 7
jne 0x418ee3
xor ecx, ecx
jmp 0x418ea0
mov eax, dword [ebp + ecx*4 - 0x264]
add eax, dword [ebp + ecx*4 - 0x268]
add ecx, 6
add eax, dword [ebp + ecx*4 - 0x284]
add eax, dword [ebp + ecx*4 - 0x288]
add eax, dword [ebp + ecx*4 - 0x28c]
add eax, dword [ebp + ecx*4 - 0x290]
imul eax, eax, 0xa4
add ebx, eax
mov dword [0x526340], ebx
cmp ecx, 0x264
jb 0x418ea0
call fcn.00418a30
test al, al
jne 0x418f40
xor edx, edx
mov dword [ebp - 0x3d8], edx
lea edi, [ebp - 0x2c4]
lea ebx, [ebx]
xor ecx, ecx
mov eax, ebx
inc ecx
cdq
xor esi, esi
idiv ecx
mov dword [ebp - 0x3e4], ecx
mov dword [ebp - 0x3dc], edx
lea ecx, [esi + 1]
mov esi, ecx
cmp esi, 0xe
jl 0x418f16
mov ecx, dword [ebp - 0x3e4]
add edi, 0xe
cmp ecx, 7
jl 0x418f02
mov edx, dword [ebp - 0x3d8]
inc edx
mov dword [ebp - 0x3d8], edx
cmp edx, 7
jl 0x418f00
or ebx, 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3d4]
call fcn.004465d0
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
mov byte [ebp - 4], 0x11
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3d8], esi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x3b4]
push eax
lea ecx, [ebp - 0x3d4]
mov byte [ebp - 4], 0x12
call fcn.00449500
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x13
jb 0x418f9a
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 0x419047
xor ecx, ecx
jmp 0x41905f
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x3dc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419052
sub ecx, dword [ebp - 0x3dc]
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x3e8]
push eax
call fcn.004512c0
add esp, 0x1c
mov edx, dword [eax]
lea eax, [esi - 0x10]
lea edi, [edx - 0x10]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x3e4], eax
cmp edi, eax
je 0x41914b
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x3dc], ecx
jl 0x419136
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x419136
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x4190cf
cmp ecx, dword [edi]
jne 0x4190cf
mov esi, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41910c
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x4190e3
call fcn.00409970
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004a98f5
add esp, 0x10
mov ecx, dword [ebp - 0x3dc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41912b
mov edx, dword [ebp - 0x3e4]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x3d8], esi
jmp 0x41914b
push dword [edx - 0xc]
lea ecx, [ebp - 0x3d8]
push edx
call fcn.00409670
mov esi, dword [ebp - 0x3d8]
mov edx, dword [ebp - 0x3e8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41916e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x3a0], 0x10
mov byte [ebp - 4], 0x12
jb 0x419189
push dword [ebp - 0x3b4]
call fcn.004a831e
add esp, 4
mov edi, dword [ebp - 0x3fc]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x4191aa
call fcn.00409970
mov dword [edi + 8], eax
call fcn.004187d0
test al, al
jne 0x4191d3
mov esi, dword [0x526340]
xor edi, edi
mov ebx, esi
inc edi
dec ebx
cmp edi, 0xe2
jb 0x4191c0
mov esi, dword [ebp - 0x3d8]
or ebx, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4191ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x3bc], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x3d4], 0x4dfc5c
jb 0x419213
push dword [ebp - 0x3d0]
call fcn.004a831e
add esp, 4
lea ecx, [ebp - 0x3d4]
mov dword [ebp - 0x3bc], 0xf
mov dword [ebp - 0x3c0], 0
mov byte [ebp - 0x3d0], 0
call fcn.004466d0
lea ecx, [ebp - 0x40c]
mov dword [ebp - 4], 0xffffffff
call fcn.00444690
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.004a8b24
mov esp, ebp
pop ebp
ret