Function at 0x49a1e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f3b46
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ecx, dword [esi + 0x13c]
cmp ecx, ebp
je 0x49a6fe
mov eax, dword [esi + 0x140]
cmp eax, ebp
jle 0x49a226
dec eax
mov dword [esi + 0x140], eax
jmp 0x49a6fe
push ebp
push ebp
call fcn.00494c10
mov ebx, eax
cmp ebx, ebp
jg 0x49a27c
mov eax, dword [esi + 0xcc]
push ebp
push ebp
push 0x1009
mov ecx, dword [eax]
push ecx
call dword [0x4f94a0]
cmp dword [esi + 0x14], ebp
je 0x49a26b
mov ecx, dword [esi + 0x13c]
call fcn.00494c40
test eax, eax
jne 0x49a26b
mov ecx, dword [esi + 0x14]
push ebp
push ebp
push 0x580
mov edx, dword [ecx]
call dword [edx]
mov dword [esi + 0x160], ebp
mov dword [0x522698], ebp
jmp 0x49a6fe
push ebx
call fcn.004dcb8f
add esp, 4
cmp eax, ebp
mov dword [esp + 0x2c], eax
je 0x49a6fe
mov ecx, dword [esi + 0x13c]
push edi
push ebx
push eax
call fcn.00494c10
lea edi, [esi + 0x158]
xor ecx, ecx
mov dword [esi + 0x154], ecx
mov dword [edi], ebp
mov eax, dword [0x52230c]
lea ebp, [esi + 0x154]
cmp eax, ecx
jne 0x49a2df
mov ecx, dword [esi + 0x13c]
push edi
push ebp
call fcn.00494f00
mov eax, dword [ebp]
mov dword [0x522260], eax
mov ecx, dword [edi]
mov dword [0x522264], ecx
xor ecx, ecx
jmp 0x49a2ea
mov dword [ebp], eax
mov edx, dword [0x522310]
mov dword [edi], edx
mov al, byte [esp + 0x37]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x20], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x298], ecx
mov dword [0x522698], 1
jmp 0x49a31f
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov edx, dword [ebx + 0x40]
cmp edx, dword [ebx + 0x38]
je 0x49a331
mov dword [0x522698], ecx
lea edi, [ebx + 0x5f]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
mov ebp, ecx
mov ecx, dword [esp + 0x28]
push eax
push 1
push ecx
lea ecx, [esp + 0x2c]
add ebp, 0x60
call fcn.004d77e0
mov eax, dword [0x522808]
test eax, eax
je 0x49a494
mov edx, dword [esp + 0x18]
mov edi, dword [0x4f95f8]
mov eax, dword [edx + 0x38]
push eax
call edi
test eax, eax
jbe 0x49a494
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x34]
cmp ecx, edx
jne 0x49a494
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x38]
cmp edx, ecx
jne 0x49a494
mov eax, dword [eax + 0x28]
push eax
call edi
mov ecx, dword [0x50a0e0]
mov dword [esp + 0x10], ecx
push eax
lea edx, [esp + 0x14]
push 0x516b10
push edx
mov byte [esp + 0x2a4], 1
call fcn.004073f0
mov eax, dword [esi + 0x164]
lea edi, [esi + 0x164]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
jge 0x49a3e0
or ebx, 0xffffffff
jmp 0x49a3ff
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.004ddb5e
add esp, 8
test eax, eax
jne 0x49a3f7
or ebx, 0xffffffff
jmp 0x49a3ff
sub eax, dword [edi]
sar eax, 1
mov ebx, eax
jns 0x49a40f
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00406dd0
cmp dword [esi + 0x160], 0xa
jle 0x49a459
test ebx, ebx
jge 0x49a459
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x14]
sub eax, ebp
test eax, eax
mov eax, ecx
jg 0x49a433
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49a459
xor ecx, ecx
mov cl, byte [eax + 0x57]
cmp ecx, 2
jne 0x49a459
mov ecx, dword [eax + 0x28]
push 1
push ecx
call dword [0x4f95f8]
mov ecx, dword [esi + 0x13c]
push eax
call fcn.00495010
mov eax, dword [esp + 0x10]
mov ecx, dword [0x50a0e4]
mov byte [esp + 0x298], 0
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x49a490
add eax, 0xfffffff4
push eax
call dword [0x4f9320]
test eax, eax
jg 0x49a490
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004dcaa6
add esp, 4
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add ebx, ebp
sub eax, ebp
mov dword [esp + 0x1c], ebx
test eax, eax
mov dword [esp + 0x14], eax
jg 0x49a31d
mov eax, dword [esi + 0x160]
cmp eax, 0xb
jge 0x49a4be
inc eax
mov dword [esi + 0x160], eax
mov eax, dword [esi + 0xcc]
push 0
push 0
push 0x1004
mov ecx, dword [eax]
push ecx
call dword [0x4f94a0]
xor ebx, ebx
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x49a6a7
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x88]
mov edx, dword [esi + 0xcc]
rep stosd dword es:[edi], eax
mov edx, dword [edx]
mov ecx, 0xa
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x88]
push ecx
push ebx
push 0x1073
push edx
mov dword [esp + 0x50], 2
mov dword [esp + 0x60], 0x103
mov dword [esp + 0x5c], eax
call dword [0x4f94a0]
test eax, eax
je 0x49a692
lea eax, [esp + 0x88]
push str.taskid:
push eax
call fcn.004ddb5e
add esp, 8
test eax, eax
je 0x49a692
lea ecx, [esp + 0x96]
push ecx
call fcn.004dd24b
mov edi, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0x2c]
add esp, 4
cmp edi, eax
mov dword [esp + 0x18], eax
je 0x49a59e
mov ebp, dword [edi]
mov edx, dword [ebp + 0x28]
push edx
call dword [0x4f95f8]
cmp ebx, eax
je 0x49a62f
mov eax, dword [esp + 0x18]
add edi, 4
cmp edi, eax
jne 0x49a57f
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea ebp, [eax + 1]
cmp ebp, ebx
jge 0x49a670
mov edx, dword [esi + 0xcc]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov edi, dword [0x4f94a0]
lea ecx, [esp + 0x88]
lea eax, [esp + 0x60]
mov dword [esp + 0x74], ecx
mov ecx, dword [edx]
push eax
push ebp
push 0x1073
push ecx
mov dword [esp + 0x78], 2
mov dword [esp + 0x88], 0x103
call edi
test eax, eax
je 0x49a628
lea edx, [esp + 0x88]
push str.tindex:
push edx
call fcn.004ddb5e
add esp, 8
test eax, eax
je 0x49a676
mov eax, dword [esi + 0xcc]
push 0
push ebp
push 0x1008
mov ecx, dword [eax]
push ecx
call edi
dec ebx
cmp ebp, ebx
jl 0x49a5b1
jmp 0x49a676
push ebp
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, esi
push ebx
call fcn.0049a960
push ebp
push ebx
mov ecx, esi
call fcn.0049acb0
mov ecx, dword [esp + 0x28]
lea eax, [edi + 4]
cmp eax, ecx
je 0x49a663
sub edi, eax
mov edx, dword [eax]
mov dword [edi + eax], edx
add eax, 4
cmp eax, ecx
jne 0x49a653
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffffc
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ecx
jmp 0x49a692
mov edi, dword [0x4f94a0]
mov eax, dword [esi + 0xcc]
mov edx, dword [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 0x1008
push ecx
call edi
dec ebx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x49a4e8
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp ecx, ebx
mov edi, ecx
je 0x49a6ca
mov edx, dword [edi]
mov ecx, esi
push edx
call fcn.0049a720
add edi, 4
cmp edi, ebx
jne 0x49a6b5
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
pop edi
cmp eax, eax
mov edx, eax
je 0x49a6e3
mov esi, dword [eax]
add eax, 4
mov dword [ecx], esi
add ecx, 4
cmp eax, edx
jne 0x49a6d5
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
push eax
call fcn.004dcaa6
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004dcaa6
add esp, 8
mov ecx, dword [esp + 0x28c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28c
ret