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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x74]
mov dword [eax], 0
test ecx, ecx
je 0x788b8d
mov eax, 0xf
mov dword [ecx], 0xffffffff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ecx
cmp eax, 6
je 0x788bf7
imul eax, eax
and eax, 3
cmp eax, 3
je 0x788bf7
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x44]
jmp 0x788bc1
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], edx
lea edx, [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x788cba
mov dword [esp + 0x44], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x38], edi
mov ebx, 2
mov esi, 0x7000002f
jmp 0x788c49
mov dword [esp + 0x38], edi
mov ebx, 6
mov edi, dword [esp + 0x20]
lea eax, [edi + edi*2]
mov edx, dword [esp + 0x44]
mov ecx, dword [edx + eax*8 + 0x14]
mov dword [esp + 0x34], ecx
mov eax, dword [edx + eax*8 + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0068ee80
mov esi, eax
and eax, 1
inc eax
xor eax, esi
sete al
movzx eax, al
cmp esi, eax
mov dword [esp + 0x24], edi
jne 0x78943b
cmp ebx, 2
jne 0x788c5d
imul ebx, ebx
and ebx, 3
cmp ebx, 2
jb 0x78943b
mov ecx, dword [esp + 0x34]
cmp dword [ecx + 0x10], 0x6669786c
mov esi, 0x7000002f
je 0x788c79
mov al, 1
test al, al
jne 0x78943b
mov ebx, 0xd
mov eax, dword [esp + 0x18]
lea eax, [eax - 0x14]
lea ecx, [ecx + 0x14]
mov edx, dword [esp + 0x80]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.006269c0
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x78943b
jmp 0x788dc7
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ecx
xor eax, eax
mov esi, 0x7000002f
jmp 0x788ced
mov ecx, eax
and ecx, 1
xor ecx, eax
cmp ecx, 0xffffffff
setne cl
movzx ecx, cl
add eax, ecx
mov ebx, dword [ebp + 4]
mov dword [esp + 0x5c], 0
mov ecx, eax
not ecx
and ecx, 1
add ecx, eax
setne cl
movzx ecx, cl
cmp eax, ecx
jb 0x788cd0
mov dword [esp + 0x50], edx
mov dword [esp + 0x38], edi
mov eax, 0x18
mov edi, dword [esp + 0x5c]
lea ecx, [edi + edi*2]
mov edx, dword [ebx + ecx*8]
cmp edx, 0x18
je 0x788d42
mov dword [esp + 0x44], ebx
mov ecx, 0xd
mov ebx, edi
mov edi, edx
and edi, 1
inc edi
xor edi, edx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x48]
jne case.0x7890b8.3
jmp 0x789041
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], edi
mov ebx, dword [esp + 0x48]
jmp 0x789041
mov dword [esp + 0x48], ebx
mov eax, 6
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + ecx*2]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x44]
cmp dword [ebx + ecx*8 + 4], edx
je 0x788da7
mov ecx, 0xf
xor edx, edx
test dl, dl
jne 0x788da7
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
cmp ecx, 7
je 0x788dc0
mov dword [esp + 0x44], ebx
imul ecx, ecx
and ecx, 3
cmp ecx, 3
mov dword [esp + 0x48], edx
mov ebx, eax
mov dword [esp + 0x58], eax
jne 0x788df5
jmp 0x789415
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
jmp 0x788b57
mov ebx, eax
jmp 0x789415
cmp ebx, 0xd
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
jne 0x788de7
imul ebx, ebx
and ebx, 3
cmp ebx, 2
jae 0x788dee
mov edx, dword [eax]
jmp 0x788e36
mov ebx, edx
jmp 0x789415
mov ebx, edx
jmp 0x789415
mov eax, dword [esp + 0x20]
mov edx, eax
or edx, 2
mov edi, eax
xor edi, 2
add edi, edx
setne dl
movzx ecx, dl
add ecx, eax
mov edx, dword [esp + 0x14]
cmp ecx, edx
jae 0x788e32
mov eax, 6
mov dword [esp + 0x5c], ecx
mov edi, ecx
or edi, 2
mov ebx, ecx
xor ebx, 2
add ebx, edi
jne 0x78935c
jmp 0x788e36
mov dword [esp + 0x5c], ecx
cmp ecx, edx
jne 0x788e50
mov eax, ecx
and eax, 1
xor eax, ecx
not eax
mov esi, 0x7000002f
test eax, eax
jne 0x78943b
mov eax, 0xb
mov esi, edx
mov dword [esp + 0x4c], esi
mov ecx, esi
and ecx, 1
inc ecx
xor ecx, esi
sete cl
movzx ecx, cl
xor ebx, ebx
cmp esi, ecx
mov dword [esp + 0x58], 0
je 0x789415
cmp eax, 0xb
mov ecx, 0
mov esi, dword [esp + 0x38]
je 0x788f08
imul eax, eax
and eax, 3
cmp eax, 3
mov ecx, 0
je 0x788f08
mov eax, dword [esp + 0x30]
add eax, 4
mov dword [esp], eax
mov dword [esp + 8], str.trial
mov dword [esp + 4], 0x20
call fcn.0068e1d0
mov edi, dword [esp + 0x3c]
movsd xmm0, qword [edi + 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
movsd qword [eax + 8], xmm0
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp edx, 0xf
ja 0x788f2a
mov ecx, edx
and ecx, 1
inc ecx
xor ecx, edx
mov ebx, dword [esp + 0x40]
jne 0x789415
jmp 0x788f41
mov eax, ecx
and eax, 1
xor eax, ecx
cmp eax, 0xffffffff
setne al
movzx eax, al
add ecx, eax
lea edx, [ebp + 4]
mov edi, dword [ebp + 4]
mov esi, 0x7000002f
test ecx, ecx
jne 0x788f1e
mov eax, ecx
imul eax, eax
and eax, 3
cmp eax, 1
jbe 0x788ef0
mov dword [esp + 0x54], edi
mov dword [esp + 0x28], edx
xor ebx, ebx
jmp 0x788f5e
mov ebx, dword [esp + 0x40]
jmp 0x788f41
cmp ecx, 0xffffffff
setne cl
movzx ecx, cl
add eax, ecx
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x10], ecx
mov ecx, eax
and ecx, 1
xor ecx, eax
cmp ecx, 0xffffffff
setne dl
movzx edx, dl
cmp eax, edx
jb 0x788f30
mov dword [esp + 0x40], ebx
jmp 0x789415
lea edi, [ebx + ebx*2]
mov eax, dword [esp + 0x54]
cmp dword [eax + edi*8], 0x19
jne 0x788f7f
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x54]
cmp dword [ecx + edi*8 + 4], eax
je 0x788fb6
mov al, 1
test al, al
je 0x788fb6
mov eax, ebx
imul eax, eax
and eax, 3
cmp eax, 2
adc ebx, 0
mov eax, dword [esp + 0x4c]
cmp ebx, eax
jae 0x789415
mov eax, 0x17
mov ecx, 3
sub ecx, ebx
xor ecx, ebx
mov dword [esp + 0x58], ebx
jne 0x7891e2
jmp 0x789415
mov edx, dword [esp + 0x7c]
test edx, edx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x54]
je 0x788fd2
mov dword [edx], ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov eax, dword [ecx + edi*8 + 4]
mov edx, dword [ecx + edi*8 + 0x10]
mov ecx, dword [ecx + edi*8 + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0068ee80
mov esi, eax
imul eax, eax
and eax, 3
cmp eax, 2
sete al
movzx eax, al
cmp esi, eax
jne 0x78943b
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov eax, dword [edx + edi*8 + 0x14]
mov dword [esp + 0x3c], eax
mov ecx, dword [eax + 0x10]
mov esi, 0x7000002f
cmp ecx, 0x7661726c
jne 0x78943b
mov dword [esp + 0x10], edx
mov eax, 0xe
mov edx, 3
sub edx, ecx
xor edx, ecx
mov dword [esp + 0x40], ebx
je 0x78943b
cmp eax, 0xe
je 0x789050
xor eax, eax
test al, al
je 0x788d53
mov eax, dword [esp + 0x80]
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
mov esi, 0x7000002f
je 0x78943b
mov dword [esp + 0x38], eax
mov eax, ecx
imul eax, eax
and eax, 3
cmp eax, 3
je 0x78943b
mov eax, dword [ecx]
mov esi, 0x7000002f
dec eax
cmp eax, 3
ja case.default.0x7890b8
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x40]
lea ecx, [ecx + ecx*2]
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + ecx*8 + 0x10]
add ecx, 0xffffffec
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, 2
jmp dword [eax*4 + 0x7ec8e0]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
sete cl
movzx ecx, cl
mov esi, 0x7000002f
cmp eax, ecx
jne 0x78943b
mov edi, ebx
mov eax, dword [esp + 0x30]
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 8], str.perpetual
mov dword [esp + 4], 0x20
call fcn.0068e1d0
mov eax, dword [esp + 0x2c]
cmp eax, 8
jb 0x7892e0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x18]
jmp 0x78940a
cmp ecx, 2
jne 0x7891c6
mov eax, ecx
not eax
and eax, 1
add eax, ecx
je 0x7891cf
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sbb ecx, ecx
and ecx, 1
cmp eax, ecx
jne 0x7891d8
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x78916f
mov ecx, 3
sub ecx, eax
xor ecx, eax
mov esi, 0x7000002f
jne 0x78943b
mov edi, 0xd
mov eax, dword [esp + 0x30]
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 8], str.expiration
mov dword [esp + 4], 0x20
call fcn.0068e1d0
mov eax, dword [esp + 0x2c]
cmp eax, 0xf
mov esi, 0x7000002f
ja 0x7893f3
mov ebx, 0x12
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
jne 0x788dc7
jmp 0x7893f3
mov dword [esp + 0x48], ebx
jmp 0x788df5
mov dword [esp + 0x48], ebx
jmp 0x788df5
mov eax, 0xe
mov esi, 0x7000002f
cmp eax, 0xe
jne 0x788f5e
mov ecx, 3
sub ecx, eax
xor ecx, eax
jne 0x78943b
jmp 0x788f5e
xor edi, edi
add ecx, 4
mov ebx, ecx
jmp 0x78923e
mov eax, edi
not eax
and eax, 1
add eax, edi
setne al
movzx eax, al
add edi, eax
mov dword [esp], ebx
mov dword [esp + 8], str.unknown
mov dword [esp + 4], 0x20
call fcn.0068e1d0
mov esi, 0x70000006
test edi, edi
jne 0x78943b
mov eax, edi
and eax, 1
xor eax, edi
not eax
test eax, eax
jne 0x789210
jmp 0x78943b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp eax, 3
je 0x789277
imul eax, eax
and eax, 3
mov esi, 0x7000002f
cmp eax, 3
jne 0x78943b
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x7892f9
mov ecx, eax
or ecx, 2
xor eax, 2
add eax, ecx
je 0x7892f9
mov eax, 4
mov esi, 0x7000002f
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x3c]
jmp 0x7893bf
mov esi, 0x7000002f
mov eax, dword [esp + 0x1c]
cmp dword [eax], 2
jne 0x78943b
mov eax, 0x1b
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
jne 0x788e7b
mov edx, ecx
or edx, 2
xor ecx, 2
add ecx, edx
jne 0x78943b
jmp 0x788e7b
mov ecx, 7
mov esi, 0x7000002f
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov edx, edi
jmp 0x788d84
mov eax, dword [esp + 0x30]
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 8], str.executions
mov dword [esp + 4], 0x20
call fcn.0068e1d0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x24]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
cmp eax, 0xc
jb 0x7893e7
imul eax, eax
and eax, 3
cmp eax, 2
jae 0x7893ed
mov eax, 0xf
mov esi, 0x7000002f
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], ecx
cmp eax, 6
mov edi, dword [esp + 0x38]
je 0x7893d5
xor edx, edx
test dl, dl
jne 0x7893de
xor ecx, ecx
mov eax, 0xfe
add eax, 0xffffff07
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
jmp 0x7893a8
mov edx, ecx
imul edx, edx
and edx, 3
cmp edx, 2
adc ecx, 0
mov edx, dword [ebp + 0x1c]
mov dword [edi + 0x10], edx
mov dword [esp + 0x58], ebx
mov edx, ecx
not edx
and edx, 1
add edx, ecx
setne dl
movzx edx, dl
cmp ecx, edx
jb 0x789390
mov ebx, dword [esp + 0x58]
cmp eax, 4
je 0x78943b
mov dword [esp + 0x3c], ebp
imul eax, eax
and eax, 3
cmp eax, 3
jne 0x789415
jmp 0x78943b
mov ebx, dword [esp + 0x44]
jmp 0x788d04
mov ebx, dword [esp + 0x44]
jmp 0x788d04
mov ebx, dword [esp + 0x40]
jmp 0x789415
mov ebx, dword [esp + 0x40]
jmp 0x789415
cmp edi, 0xd
jne 0x78943b
mov eax, edi
not eax
and eax, 1
add eax, edi
je 0x78943b
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x10], eax
mov ebx, dword [esp + 0x40]
mov edi, 0x16
mov eax, ebx
or eax, 2
mov ecx, ebx
xor ecx, 2
xor edx, edx
add ecx, eax
mov esi, 0x7000002f
cmove esi, edx
mov eax, dword [esp + 0x50]
cmp ebx, dword [eax]
cmovne esi, edx
jmp 0x7893f3
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret