Function at 0x40a300
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x7e9b89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x24], ebp
call fcn.007d3a8e
mov dword [ebp], method.CTabCtrl.virtual_0
xor ebx, ebx
lea ecx, [ebp + 0x3c]
push ebx
mov dword [esp + 0x48], ebx
call fcn.004919e0
push ebx
lea ecx, [ebp + 0x578]
mov byte [esp + 0x48], 1
call fcn.00499ec0
push ebx
lea ecx, [ebp + 0x7b8]
mov byte [esp + 0x48], 2
call fcn.004b0940
push ebx
lea ecx, [ebp + 0xa24]
mov byte [esp + 0x48], 3
call fcn.0049b730
push ebx
lea ecx, [ebp + 0xc68]
mov byte [esp + 0x48], 4
call fcn.004a4470
push ebx
lea ecx, [ebp + 0xe5c]
mov byte [esp + 0x48], 5
call fcn.004a2000
push ebx
lea ecx, [ebp + 0xfa4]
mov byte [esp + 0x48], 6
call fcn.00488ef0
push ebx
lea ecx, [ebp + 0x11e0]
mov byte [esp + 0x48], 7
call fcn.004a1d50
push ebx
lea ecx, [ebp + 0x141c]
mov byte [esp + 0x48], 8
call fcn.004a8ba0
push ebx
lea ecx, [ebp + 0x1594]
mov byte [esp + 0x48], 9
call fcn.00401080
lea ecx, [ebp + 0x1760]
mov byte [esp + 0x44], 0xa
mov dword [ebp + 0x175c], ebx
call fcn.007d1c2b
lea eax, [esp + 0x13]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x48], 0xb
mov byte [ebp + 0x17b8], bl
mov dword [ebp + 0x17bc], ebx
mov dword [ebp + 0x17c0], ebx
mov dword [ebp + 0x17c4], ebx
call fcn.00478ac0
push str.Bitvise_SSH_Client_Help
mov byte [esp + 0x48], 0xc
mov dword [esp + 0x2c], vtable.ucs2string.0
call fcn.007ac4d2
add esp, 4
push eax
push str.Bitvise_SSH_Client_Help
lea ecx, [esp + 0x34]
call fcn.00403980
lea ecx, [esp + 0x28]
push ebp
push ecx
lea ecx, [ebp + 0x17c8]
mov byte [esp + 0x4c], 0xd
call fcn.0048cc70
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0xf
call fcn.00404f20
mov dl, byte [esp + 0x13]
lea edi, [ebp + 0x18e0]
push ebx
mov ecx, edi
mov byte [edi], dl
call fcn.00404c40
mov al, byte [esp + 0x13]
lea esi, [ebp + 0x18f0]
push ebx
mov ecx, esi
mov byte [esp + 0x48], 0x10
mov byte [esi], al
call fcn.00404c40
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x1900]
push ebx
mov byte [esp + 0x48], 0x11
mov byte [ecx], dl
call fcn.00404c40
mov al, byte [esp + 0x13]
lea ebx, [ebp + 0x1910]
push 0
mov ecx, ebx
mov byte [esp + 0x48], 0x12
mov byte [ebx], al
call fcn.00404c40
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x1920]
push 0
mov byte [esp + 0x48], 0x13
mov byte [ecx], dl
call fcn.00404c40
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0x1930]
push 0
mov byte [esp + 0x48], 0x14
mov byte [ecx], al
call fcn.00404c40
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x1940]
push 0
mov byte [esp + 0x48], 0x15
mov byte [ecx], dl
call fcn.00404c40
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0x1950]
push 0
mov byte [esp + 0x48], 0x16
mov byte [ecx], al
call fcn.00404c40
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x1960]
push 0
mov byte [esp + 0x48], 0x17
mov byte [ecx], dl
call fcn.00404c40
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0x1970]
push 0
mov byte [esp + 0x48], 0x18
mov byte [ecx], al
call fcn.00404c40
lea ecx, [esp + 0x28]
push 0x162
push ecx
mov byte [esp + 0x4c], 0x19
mov dword [ebp], method.CTabCtrl.virtual_0
call fcn.0048d020
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [esp + 0x50], 0x1a
call fcn.00402e90
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x19
call fcn.00404c40
lea edx, [esp + 0x28]
push 0x163
push edx
call fcn.0048d020
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [esp + 0x50], 0x1b
call fcn.00402e90
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x19
call fcn.00404c40
lea eax, [esp + 0x28]
push 0x1ac
push eax
call fcn.0048d020
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x1900]
mov byte [esp + 0x50], 0x1c
call fcn.00402e90
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x19
call fcn.00404c40
lea ecx, [esp + 0x28]
push 0x1b3
push ecx
call fcn.0048d020
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x50], 0x1d
call fcn.00402e90
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x19
call fcn.00404c40
lea edx, [esp + 0x28]
push 0x1a8
push edx
call fcn.0048d020
add esp, 8
mov byte [esp + 0x44], 0x1e
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x1920]
call fcn.00402e90
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x19
call fcn.00404c40
lea eax, [esp + 0x28]
push 0x188
push eax
call fcn.0048d020
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x1930]
mov byte [esp + 0x50], 0x1f
call fcn.00402e90
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x19
call fcn.00404c40
lea ecx, [esp + 0x28]
push 0x164
push ecx
call fcn.0048d020
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x1940]
mov byte [esp + 0x50], 0x20
call fcn.00402e90
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 0x19
call fcn.00404c40
lea edx, [esp + 0x28]
push 0x165
push edx
call fcn.0048d020
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x1950]
mov byte [esp + 0x50], 0x21
call fcn.00402e90
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x44], 0x19
test eax, eax
je 0x40a720
mov cl, byte [eax - 1]
dec eax
test cl, cl
je 0x40a717
dec cl
mov byte [eax], cl
jmp 0x40a720
push eax
call fcn.007d7349
add esp, 4
lea eax, [esp + 0x28]
push 0x161
push eax
call fcn.0048d020
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x1960]
mov byte [esp + 0x50], 0x22
call fcn.00402e90
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x44], 0x19
test eax, eax
je 0x40a76b
mov cl, byte [eax - 1]
dec eax
test cl, cl
je 0x40a762
dec cl
mov byte [eax], cl
jmp 0x40a76b
push eax
call fcn.007d7349
add esp, 4
lea ecx, [esp + 0x28]
push 0x160
push ecx
call fcn.0048d020
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x1970]
mov byte [esp + 0x50], 0x23
call fcn.00402e90
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x44], 0x19
test eax, eax
je 0x40a7b6
mov cl, byte [eax - 1]
dec eax
test cl, cl
je 0x40a7ad
dec cl
mov byte [eax], cl
jmp 0x40a7b6
push eax
call fcn.007d7349
add esp, 4
call fcn.0049d610
test al, al
mov dword [esp + 0x1c], 0x8faa90
jne 0x40a7cf
mov dword [esp + 0x1c], 0x8faa88
mov edi, str.Admin___Console
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x20], esi
jne 0x40a7ee
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x40a833
mov eax, dword [ebx + 8]
test eax, eax
jbe 0x40a827
cmp esi, eax
ja 0x40a827
mov edx, 1
mov ecx, dword [ebx + 4]
sub edx, esi
mov dword [esp + 0x14], ecx
add eax, edx
mov dword [esp + 0x18], eax
push eax
movsx eax, byte [str.Admin___Console]
push eax
push ecx
call fcn.007ad070
add esp, 0xc
test eax, eax
jne 0x40a995
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x14]
cmp esi, dword [ebp + 0x1918]
jae 0x40aa4b
mov edi, str.Admin___Console
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 8]
not ecx
dec ecx
cmp eax, esi
mov edi, ecx
mov dword [esp + 0x18], edi
jae 0x40a860
call fcn.007c4e01
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x20], eax
je 0x40a89a
mov cl, byte [eax - 1]
test cl, cl
je 0x40a89a
push 1
mov ecx, ebx
call fcn.00404c40
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebx
call fcn.004030a0
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 8]
mov eax, ecx
sub eax, esi
cmp eax, edi
jae 0x40a8ab
mov dword [esp + 0x18], eax
mov edi, eax
test edi, edi
jbe 0x40a913
mov eax, dword [ebx + 4]
test eax, eax
je 0x40a8c7
mov dl, byte [eax - 1]
test dl, dl
je 0x40a8c7
push 0
push ecx
mov ecx, ebx
call fcn.00404a50
mov eax, dword [ebx + 4]
test eax, eax
je 0x40a8d2
mov byte [eax - 1], 0
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
sub ecx, esi
lea edx, [esi + edi]
sub ecx, edi
add edx, eax
push ecx
add eax, esi
push edx
push eax
call fcn.007ac600
mov eax, dword [ebx + 8]
add esp, 0xc
sub eax, edi
mov ecx, ebx
push 0
push eax
mov dword [esp + 0x28], eax
call fcn.00404a50
test al, al
je 0x40a913
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 8]
not ecx
dec ecx
cmp eax, esi
mov edi, ecx
mov dword [esp + 0x20], edi
jae 0x40a933
call fcn.007c4e01
mov ecx, dword [ebx + 8]
or edx, 0xffffffff
sub edx, ecx
cmp edx, edi
ja 0x40a944
call fcn.007c4d19
test edi, edi
jbe 0x40aa4b
mov edi, dword [ebx + 8]
mov edx, dword [esp + 0x20]
add edi, edx
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.00405580
cmp eax, edi
jae 0x40a969
call fcn.007c4d19
cmp edi, dword [ebx + 8]
jae 0x40a971
mov dword [ebx + 8], edi
mov eax, dword [ebx + 4]
test eax, eax
je 0x40a9e2
mov cl, byte [eax - 1]
test cl, cl
je 0x40a9e2
test edi, edi
mov ecx, ebx
jne 0x40a9fb
push 1
call fcn.00404c40
jmp 0x40aa4b
mov esi, dword [esp + 0x20]
mov ecx, esi
mov edi, str.Admin___Console
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40a9d6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
inc eax
mov dword [esp + 0x14], eax
lea ecx, [edx + ecx - 1]
mov dword [esp + 0x18], ecx
push ecx
movsx ecx, byte [str.Admin___Console]
push ecx
push eax
call fcn.007ad070
add esp, 0xc
test eax, eax
jne 0x40a991
jmp 0x40a827
sub eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
jmp 0x40a82f
test edi, edi
jne 0x40a9f4
test eax, eax
je 0x40aa4b
push edi
mov ecx, ebx
call fcn.004049b0
jmp 0x40aa4b
cmp dword [ebx + 0xc], edi
jae 0x40aa01
mov ecx, ebx
push edi
call fcn.00405590
mov ecx, dword [ebx + 8]
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 4]
sub ecx, esi
push ecx
lea ecx, [edi + esi]
lea edx, [esi + eax]
add ecx, eax
push edx
push ecx
call fcn.007ac600
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov ecx, edi
mov edi, dword [ebx + 4]
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x24]
mov ecx, edx
add esp, 0xc
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0x3c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret