Function at 0x7e5ea0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov eax, dword [0xbd33e0]
mov esi, edx
xor eax, ebp
mov dword [esp + 0xc8], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0
mov eax, dword [ecx]
cmp dword [ecx + 0x24], 0
mov dword [esp + 0x78], eax
je 0x7e5ef9
mov dword [esp + 0xc], 0
jmp 0x7e78e4
cmp byte [eax + 0x51], 0
mov dword [esp + 0xc], 0
jne 0x7e78e4
mov edx, esi
mov edi, ecx
call fcn.0080fb50
test eax, eax
je 0x7e78e4
mov edx, dword [eax + 0x48]
mov ecx, dword [edi]
mov ebx, eax
mov dword [esp + 0x28], esi
call fcn.0078dee0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x94]
mov ecx, edi
mov edx, ebx
push eax
push dword [ebp + 8]
push 0x7f
call fcn.0082cc40
add esp, 0xc
mov esi, dword [ebx + 0xc]
mov ecx, edi
mov edx, ebx
mov dword [esp + 0x48], eax
call fcn.0080c2b0
test eax, eax
jne 0x7e78e0
mov dword [esp + 0x88], esi
mov ecx, edi
mov edx, ebx
push dword [esp + 0x94]
call fcn.0082cd80
add esp, 4
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x7e78e4
mov eax, dword [edi + 0x28]
mov esi, 0
mov dword [esp + 0x18], eax
inc eax
mov dword [edi + 0x28], eax
mov dword [esp + 0x5c], eax
cmp byte [ebx + 0x24], 0
jns 0x7e5faa
mov ecx, ebx
call fcn.00792930
mov esi, eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], ebx
test eax, eax
jne 0x7e5fbd
mov ebx, dword [esp + 0x18]
xor edx, edx
jmp 0x7e5fd8
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x18]
xor edx, edx
cmp esi, eax
cmove ebx, ecx
inc ecx
inc edx
mov dword [edi + 0x28], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x7e5fc7
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x68], edx
test eax, eax
je 0x7e5ff4
mov ebx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov dword [edi + 0x28], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x34], ebx
mov ebx, dword [esp + 4]
movsx eax, word [ebx + 0x2a]
add eax, ecx
lea edx, [ecx + eax*4 + 6]
mov ecx, dword [esp + 0x78]
push 0
call fcn.007995d0
add esp, 4
test eax, eax
jne 0x7e6030
mov dword [esp + 0xc], 0
jmp 0x7e78e0
movsx ecx, word [ebx + 0x2a]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x68]
lea ecx, [eax + ecx*4]
lea edx, [ecx + esi*4]
mov dword [esp + 0x50], ecx
lea ecx, [ecx + esi*4 + 4]
mov dword [esp + 0x20], edx
lea edx, [esi + 1]
mov dword [esp + 0x34], edx
push edx
push 1
mov dword [esp + 0x68], ecx
push ecx
mov dword [esp + 0x18], eax
call fcn.0098a5f0
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esp + 0x20]
mov byte [esi + eax + 5], 0
cmp word [ebx + 0x2a], 0
jle 0x7e608f
xor eax, eax
mov dword [edx + eax*4], 0xffffffff
inc eax
movsx ecx, word [ebx + 0x2a]
cmp eax, ecx
jl 0x7e607f
mov esi, dword [esp + 0x28]
mov eax, dword [ebp + 0x14]
mov ecx, edi
mov dword [esp + 0xb4], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], eax
mov dword [esp + 0xb0], 0x200
call fcn.007f7590
test eax, eax
je 0x7e78e4
mov dword [esp], edi
mov edi, dword [ebp + 8]
mov dword [esp + 8], eax
cmp dword [edi], 0
jg 0x7e6121
mov edx, dword [esp + 0xc]
mov dword [esp + 0x70], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x74], 0
jmp 0x7e6812
mov eax, fcn.0082d4f0
xor ebx, ebx
mov dword [esp + 0x74], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x70], 0
not eax
and eax, 1
mov dword [esp + 0x58], eax
lea eax, [ebx + ebx*4]
lea ecx, [esp + 0x98]
mov edx, dword [edi + eax*4 + 4]
mov dword [esp + 0x10], eax
call fcn.008024c0
test eax, eax
jne 0x7e78e4
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
lea eax, [edi + edx*4 + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 4]
movsx ecx, word [eax + 0x2a]
mov dword [esp + 0x20], ecx
test ecx, ecx
mov ecx, edx
jg 0x7e6195
mov ebx, dword [esp + 0x24]
xor esi, esi
jmp 0x7e64ae
mov ecx, dword [edi + ecx*4 + 8]
mov eax, dword [eax + 4]
xor esi, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
lea edi, [esi + esi*4]
mov edx, dword [esp + 0x38]
mov ebx, dword [eax + edi*4]
mov ecx, ebx
call fcn.00783720
test eax, eax
jne 0x7e6498
mov eax, dword [esp + 4]
mov dword [esp + 0x20], ebx
movsx eax, word [eax + 0x28]
cmp esi, eax
jne 0x7e6206
mov eax, dword [esp + 0x40]
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x74], eax
mov al, 1
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [edx + esi*4], eax
mov eax, dword [esp + 4]
movzx eax, word [eax + 0x2a]
mov dword [esp + 0x20], eax
jmp 0x7e64aa
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x2c], 0
mov edx, dword [esp + 0xc]
movzx eax, word [eax + edi*4 + 0x10]
mov edi, dword [ebp + 8]
je 0x7e622f
mov ecx, eax
and ecx, 1
test cx, cx
je 0x7e622f
mov al, 1
mov dword [esp + 0x70], eax
jmp 0x7e61ea
mov ebx, dword [esp + 0x24]
test al, 0x60
je 0x7e61ee
mov edx, fcn.007adaa0
mov eax, fcn.007adaa0
movzx esi, byte [0xbba54b]
and edx, 1
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7e6481
mov al, byte [0xbba54b]
xor ecx, ecx
cmp edx, 0xffffffff
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 6]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbba54b], ah
jne 0x7e6271
mov ecx, fcn.007adaa0
mov edx, fcn.007adaa0
movzx eax, al
and ecx, 1
xor ecx, edx
xor edx, edx
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 6]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e62f0
xor eax, eax
cmp ecx, 0xffffffff
movzx esi, byte [0xbba54b]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7e62c9
jmp 0x7e6481
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbba54b]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7e6451
mov ecx, fcn.007adaa0
mov eax, fcn.007adaa0
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
not ecx
and ecx, 0x801
lea ecx, [eax + ecx*2 + 0x590a47ce]
mov eax, dword [0xbba520]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbba520], eax
not eax
imul edx, eax
mov eax, dword [0xbba524]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbba524], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbba528]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbba528], edx
or eax, esi
not edx
mov edi, dword [0xbba52c]
imul edx, eax
lea esi, [edx*8]
xor edi, edx
shr edx, 0x1c
mov dword [0xbba52c], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbba530]
mov esi, edi
shl esi, 4
xor edx, edi
shr edi, 0x1b
mov dword [0xbba530], edx
or edi, esi
not edx
mov ebx, dword [0xbba534]
imul edx, edi
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbba534], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbba538]
mov esi, ebx
shl esi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbba538], edx
or ebx, esi
not edx
mov edi, dword [0xbba53c]
imul edx, ebx
mov esi, edx
shl esi, 7
xor edi, edx
shr edx, 0x18
mov dword [0xbba53c], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbba540]
mov esi, edi
shl esi, 8
xor edx, edi
shr edi, 0x17
mov dword [0xbba540], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbba544], edx
mov dl, 1
shl dl, cl
or byte [0xbba54b], dl
mov ecx, fcn.007adaa0
mov eax, fcn.007adaa0
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbba54b], al
push dword [esp + 0x20]
push 0xbba520
push dword [esp + 8]
call fcn.0078de60
jmp 0x7e78dd
inc esi
cmp esi, dword [esp + 0x20]
jl 0x7e61a6
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
movsx eax, word [esp + 0x20]
cmp esi, eax
jl 0x7e665f
cmp dword [esp + 0x2c], 0
mov edi, dword [edi + ecx*4 + 8]
jne 0x7e64f5
mov ecx, edi
call fcn.007979e0
test eax, eax
je 0x7e64f5
mov eax, dword [esp + 0x40]
mov edi, ebx
mov dword [esp + 0x20], 0xbba568
mov esi, 0xffffffff
mov eax, dword [eax]
mov dword [esp + 0x74], eax
mov al, 1
mov dword [esp + 0x3c], eax
jmp 0x7e6672
mov edx, fcn.00833870
movzx ecx, byte [0xbba567]
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 2
sete al
bt ecx, eax
jb 0x7e6643
mov al, byte [0xbba567]
cmp edx, 2
mov ah, 1
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbba567], ah
jne 0x7e651d
mov ecx, fcn.00833870
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e656e
movzx edx, byte [0xbba567]
xor eax, eax
cmp ecx, 2
sete al
bt edx, eax
jae 0x7e6555
jmp 0x7e6643
movzx edx, byte [0xbba567]
xor eax, eax
cmp ecx, 2
sete al
bt edx, eax
jb 0x7e6625
mov eax, fcn.00833870
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbba550]
sete cl
or ecx, 0x7392b790
add ecx, 0xd0
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbba550], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbba554]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbba554], eax
or esi, edx
not eax
mov edx, dword [0xbba558]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbba558], edx
or esi, eax
not edx
mov eax, dword [0xbba55c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbba55c], eax
or esi, edx
not eax
mov dl, 1
imul eax, esi
shl dl, cl
xor dword [0xbba560], eax
or byte [0xbba567], dl
mov eax, fcn.00833870
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbba567], al
push edi
push 0xbba550
mov edi, dword [esp + 8]
push edi
call fcn.0078de60
add esp, 0xc
mov byte [edi + 0x11], 1
jmp 0x7e78e0
mov eax, dword [esp + 4]
lea ecx, [esi + esi*4]
mov edi, ebx
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x58]
xor eax, eax
movzx edx, byte [0xbba573]
mov ecx, ebx
add ecx, fcn.0082d4f0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7e67b2
mov al, byte [0xbba573]
mov edx, ebx
xor ecx, ecx
add edx, fcn.0082d4f0
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbba573], dl
jne 0x7e66a6
mov edx, ebx
xor ecx, ecx
movzx eax, al
add edx, fcn.0082d4f0
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x7e6725
mov ecx, ebx
xor eax, eax
movzx edx, byte [0xbba573]
add ecx, fcn.0082d4f0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jae 0x7e66f9
jmp 0x7e67b2
mov ecx, ebx
xor eax, eax
movzx edx, byte [0xbba573]
add ecx, fcn.0082d4f0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7e678e
mov ecx, ebx
xor eax, eax
mov dl, 1
add ecx, fcn.0082d4f0
sete al
mov ecx, eax
not ecx
and ecx, 0x181
lea ecx, [eax + ecx*2 + 0x3eadac5e]
mov eax, dword [0xbba568]
xor eax, ecx
mov dword [0xbba568], eax
not eax
imul eax, ecx
and cl, 7
shl dl, cl
xor dword [0xbba56c], eax
or byte [0xbba573], dl
xor eax, eax
add ebx, fcn.0082d4f0
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbba573], al
mov eax, dword [esp + 0x78]
mov ecx, dword [esp]
shl edi, 4
mov edx, 0x17
mov eax, dword [eax + 0x10]
push dword [eax + edi]
push dword [esp + 0x24]
mov eax, dword [esp + 0xc]
push dword [eax]
call fcn.008002d0
add esp, 0xc
cmp eax, 2
je 0x7e67f3
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
cmp eax, 1
jne 0x7e6805
jmp 0x7e78e4
mov edx, dword [esp + 0xc]
mov edi, dword [ebp + 8]
mov dword [edx + esi*4], 0xffffffff
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
inc ebx
cmp ebx, dword [edi]
jl 0x7e6149
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 4]
movzx ecx, al
add al, byte [esp + 0x70]
test byte [ebx + 0x24], 0x60
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
je 0x7e6887
movzx eax, word [ebx + 0x2a]
xor esi, esi
test ax, ax
mov edi, 0
jle 0x7e6887
cmp dword [edx + edi*4], 0
jns 0x7e687a
mov eax, dword [ebx + 4]
lea ecx, [edi + edi*4]
test byte [eax + ecx*4 + 0x10], 0x60
je 0x7e687a
mov edx, dword [esp + 0xc]
mov ecx, dword [eax + ecx*4 + 4]
push dword [esp + 0x20]
call fcn.00830520
mov edx, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x7e687a
mov esi, 1
mov dword [edx + edi*4], 0x1869f
movsx eax, word [ebx + 0x2a]
inc edi
cmp edi, eax
jl 0x7e683f
test esi, esi
jne 0x7e6833
mov edi, edx
mov edx, ebx
xor ebx, ebx
mov ecx, dword [esp + 0x28]
movzx esi, byte [esp + 0x3c]
cmp ebx, dword [edx + 0x38]
mov dword [esp + 0x84], esi
sbb eax, eax
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x40], eax
mov ecx, dword [esp]
push esi
push edi
call fcn.0082ccb0
add esp, 8
cmp dword [ebp + 0x10], 5
mov edx, 0
mov dword [esp + 0x38], eax
jne 0x7e68d4
mov edx, 1
mov dword [esp + 0x90], 1
mov eax, dword [esp + 4]
mov edi, dword [eax + 8]
test edi, edi
je 0x7e69cc
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x10], edx
setne al
cmp dword [esp + 0x38], 1
setg cl
xor esi, esi
or cl, al
mov byte [esp + 0x54], cl
cmp edi, dword [esp + 0x2c]
sete al
or al, byte [esp + 0x54]
jne 0x7e693b
mov edx, dword [esp + 0xc]
mov ecx, edi
push dword [esp + 0x20]
call fcn.008305a0
add esp, 4
test eax, eax
jne 0x7e693b
xor ebx, ebx
cmp word [edi + 0x32], 0
jne 0x7e695d
mov eax, dword [esp + 0x60]
lea ebx, [esi + 1]
mov byte [eax + esi + 1], 0
xor eax, eax
jmp 0x7e69ad
mov ebx, dword [esp]
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + 1]
mov dword [ebx + 0x2c], eax
movzx edx, word [edi + 0x34]
lea ecx, [ecx + edx + 1]
mov dword [ebx + 0x2c], ecx
jmp 0x7e69a6
movzx eax, word [edi + 0x32]
inc ebx
cmp ebx, eax
jae 0x7e692b
mov ecx, edi
mov edx, ebx
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.008305b0
add esp, 8
test eax, eax
je 0x7e6954
mov ebx, dword [esp]
cmp dword [ebp + 0x10], 0xb
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + 1]
mov dword [ebx + 0x2c], eax
movzx edx, word [edi + 0x34]
lea ecx, [ecx + edx + 1]
mov dword [ebx + 0x2c], ecx
jne 0x7e69a6
cmp byte [edi + 0x36], 5
mov ecx, dword [esp + 0x10]
mov edx, 1
cmove ecx, edx
mov dword [esp + 0x10], ecx
test eax, eax
je 0x7e692b
lea ebx, [esi + 1]
mov ecx, dword [esp + 0x50]
mov dword [ecx + esi*4], eax
mov esi, ebx
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x7e68ff
mov edx, dword [esp + 0x10]
mov dword [esp + 0x90], edx
mov edi, dword [esp]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov eax, dword [edi + 0x2c]
inc eax
test edx, edx
mov dword [edi + 0x2c], eax
mov dword [ecx + ebx*4], eax
je 0x7e69f7
push dword [esp + 0x34]
push 1
push dword [esp + 0x68]
call fcn.0098a5f0
add esp, 0xc
cmp byte [edi + 0x12], 0
mov esi, dword [esp + 0x88]
jne 0x7e6a0d
mov ecx, dword [esp + 8]
call fcn.0082d200
mov eax, dword [esp + 0x48]
xor edx, edx
mov ecx, edi
or eax, dword [esp + 0x38]
setne dl
push dword [esp + 0x24]
call fcn.00800f40
add esp, 4
mov eax, dword [esp + 4]
xor edx, edx
mov dword [esp + 0x40], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x24], 0
cmp dword [eax + 0x38], 0
mov eax, 0
jne 0x7e6ad9
mov edi, dword [esp]
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x48], 0
mov ecx, dword [edi + 0x2c]
mov eax, dword [eax + ebx*4]
lea edx, [ecx + 1]
mov dword [esp + 0x24], eax
mov dword [edi + 0x2c], edx
jne 0x7e6a8b
cmp byte [esp + 0x70], 0
jne 0x7e6a8b
cmp dword [esp + 0x38], 0
mov eax, edx
mov dword [esp + 0x54], 0
je 0x7e6aa2
mov eax, dword [esp + 4]
mov edi, dword [esp]
add ecx, 2
mov dword [esp + 0x54], ecx
movsx eax, word [eax + 0x2a]
add eax, edx
mov dword [edi + 0x2c], eax
cmp dword [esp + 0x48], 0
jne 0x7e6ac0
cmp byte [esp + 0x3c], 0
jne 0x7e6ac0
cmp dword [esp + 0x38], 0
jne 0x7e6ac0
mov edi, dword [esp]
mov dword [esp + 0x40], edx
jmp 0x7e6acb
mov edi, dword [esp]
inc eax
mov dword [esp + 0x40], eax
mov dword [edi + 0x2c], eax
mov ecx, dword [esp + 4]
movsx ecx, word [ecx + 0x2a]
add ecx, eax
inc eax
mov dword [edi + 0x2c], ecx
test esi, esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], edx
je 0x7e6b16
mov esi, dword [esp]
mov edi, dword [esp + 4]
lea edx, [esp + 0xb8]
mov ecx, esi
push dword [edi]
call fcn.0082d1e0
add esp, 4
mov ecx, esi
mov esi, dword [ebp + 0xc]
mov edx, edi
push dword [esp + 0x14]
push esi
call fcn.0082d210
add esp, 8
lea ecx, [esp + 0x98]
mov edx, esi
call fcn.008024c0
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x7e78e4
mov eax, dword [esp + 4]
cmp dword [eax + 0x38], 0
je 0x7e6b62
mov ecx, dword [esp]
mov edx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x80]
mov ebx, dword [ebp + 8]
push ebx
push eax
call fcn.008305f0
add esp, 0x18
jmp 0x7e78e4
mov esi, dword [esp]
mov ecx, esi
call fcn.007fb640
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x80], 0
test byte [ecx + 0x24], 1
jne 0x7e6b8a
mov esi, dword [ebp + 0x14]
jmp 0x7e6bc6
cmp dword [esi + 0x78], 0
mov esi, dword [ebp + 0x14]
jne 0x7e6bc6
test esi, esi
jne 0x7e6bc6
mov eax, dword [esp]
mov al, byte [eax + 0x12]
test al, al
jne 0x7e6bc6
mov ecx, dword [esp]
mov edx, 0x45
mov eax, dword [ecx + 0x2c]
inc eax
mov dword [ecx + 0x2c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x80], eax
push eax
push 0
call fcn.007d10d0
add esp, 8
mov eax, dword [esp + 4]
cmp byte [eax + 0x24], 0
js 0x7e6c0c
mov ecx, dword [esp + 8]
mov edx, 0x48
push dword [esp + 0x1c]
push dword [esp + 0x28]
push 0
call fcn.007d10f0
add esp, 0xc
mov dword [esp + 0x64], 0
mov dword [esp + 0x7c], 0
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x44], 0
jmp 0x7e6ca4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp]
test esi, esi
mov dword [esp + 0x64], 0
movzx edx, word [eax + 0x32]
mov eax, dword [ecx + 0x2c]
movsx edi, dx
mov dword [esp + 0x30], edx
lea edx, [eax + edi + 1]
mov dword [ecx + 0x2c], edx
lea ecx, [eax + 1]
mov dword [esp + 0x44], edx
je 0x7e6c45
mov dword [esp + 0x7c], 0
jmp 0x7e6ca0
mov edx, dword [esp]
mov dword [esp + 0x34], ecx
add eax, edi
mov esi, dword [edx + 0x28]
lea ecx, [esi + 1]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 8]
mov dword [edx + 0x28], ecx
mov edx, 0x48
mov ecx, esi
push eax
push dword [esp + 0x38]
push 0
call fcn.007d10f0
add esp, 0xc
mov ecx, esi
mov esi, dword [ebp + 0x14]
mov edx, 0x64
push edi
push dword [esp + 0x68]
call fcn.007d10d0
add esp, 8
mov ecx, dword [esp]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x7c], eax
call fcn.007f7980
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
test esi, esi
mov dword [esp + 0x34], ecx
je 0x7e6cdb
push 0x10
push dword [esp + 0x50]
push dword [ebp + 0xc]
push dword [esp + 0xc]
call fcn.007fc0d0
add esp, 0x10
xor esi, esi
mov dword [esp + 0x10], 1
mov dword [esp + 0x8c], 0
jmp 0x7e6db6
mov ecx, dword [esp]
xor eax, eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], edi
cmp byte [ecx + 0x12], 0
sete al
or edx, dword [esp + 0x38]
mov edx, 0x1004
lea eax, [eax*8 + 0x1004]
cmovne eax, edx
cmp byte [esp + 0x3c], 0
cmovne eax, edx
cmp dword [esp + 0x10], 0
cmovne eax, edx
mov edx, dword [esp + 0x28]
push dword [esp + 0x5c]
push eax
push 0
push 0
push dword [ebp + 0xc]
call fcn.00815bf0
add esp, 0x14
test eax, eax
je 0x7e78e0
lea edx, [esp + 0xc0]
mov ecx, eax
mov esi, eax
call fcn.0082d2f0
mov ecx, esi
mov edi, eax
call fcn.00830970
cmp edi, 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x6c], edi
jne 0x7e6d69
mov edi, dword [esp + 0x30]
jmp 0x7e6db6
mov ecx, dword [esp]
mov edi, dword [esp + 0x30]
call fcn.008106b0
cmp dword [esp + 0x6c], 2
je 0x7e6d86
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
jmp 0x7e6db6
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x10], 2
test eax, eax
js 0x7e6db6
cmp eax, dword [esp + 0x14]
je 0x7e6db6
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
xor edx, edx
cmp byte [ecx + eax], 0
sete dl
add edx, edx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], esi
cmp byte [eax + 0x24], 0
jns 0x7e6e1e
movsx esi, di
test si, si
jle 0x7e6dfb
xor edi, edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 4]
mov ecx, dword [ecx + 4]
lea eax, [edi + eax]
movsx ebx, word [ecx + edi*2]
mov ecx, dword [esp + 8]
push eax
push ebx
push dword [esp + 0x1c]
call fcn.007fc460
add esp, 0xc
inc edi
cmp edi, esi
jne 0x7e6dce
cmp dword [esp + 0x10], 0
mov dword [esp + 0x30], esi
je 0x7e6e9e
cmp dword [esp + 0x7c], 0
jne 0x7e6e8c
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
jmp 0x7e6eed
mov ecx, dword [esp + 8]
mov edx, 0x7f
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.007d10d0
add esp, 8
cmp dword [esp + 0x10], 0
mov dword [esp + 0x30], 0
je 0x7e6e57
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 4]
mov edi, esi
mov esi, dword [esp]
jmp 0x7e6ef9
mov edi, dword [esp]
mov ecx, dword [esp + 0x50]
mov edx, 0x93
mov eax, dword [edi + 0x2c]
inc eax
mov dword [edi + 0x2c], eax
mov dword [ecx + ebx*4], eax
mov ecx, dword [esp + 8]
push dword [esp + 0x1c]
push dword [esp + 0x28]
call fcn.007d10d0
add esp, 8
mov esi, dword [ebp + 8]
mov eax, esi
mov esi, edi
mov edi, eax
jmp 0x7e6ef5
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x7c]
call fcn.007ff3d0
jmp 0x7e6e11
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x2c]
call fcn.00810d50
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 8]
mov edx, 0x5b
push ebx
push eax
mov edi, dword [esp + 0x4c]
push edi
push ebx
mov esi, dword [esp + 0x44]
push esi
call fcn.007f75d0
add esp, 0x14
mov ecx, dword [esp + 8]
mov edx, 0x83
push ebx
push esi
push edi
push dword [esp + 0x70]
call fcn.0078dfd0
add esp, 0x10
mov dword [esp + 0x30], 0
mov esi, dword [ebp + 8]
mov edi, esi
mov esi, dword [esp]
mov ebx, dword [esp + 4]
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x34], 0
je 0x7e6f14
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
jmp 0x7e7121
mov esi, dword [esp + 0x10]
cmp esi, 2
je 0x7e6f26
mov ecx, dword [esp + 0x6c]
call fcn.00817e60
cmp dword [esp + 0x88], 0
jne 0x7e6f9b
test esi, esi
je 0x7e6f78
mov esi, dword [esp + 0xc0]
test esi, esi
js 0x7e6f4d
mov eax, esi
mov ecx, dword [esp + 0x60]
sub eax, dword [esp + 0x18]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0xc4]
test eax, eax
js 0x7e6f66
mov ecx, eax
mov edx, dword [esp + 0x60]
sub ecx, dword [esp + 0x18]
mov byte [edx + ecx], 0
cmp dword [esp + 0x10], 2
jne 0x7e6f78
not eax
shr eax, 0x1f
cmp dword [esp + 0x68], eax
ja 0x7e6fb6
mov ecx, dword [esp]
mov edx, dword [esp + 4]
push 0
push 0
push dword [esp + 0x68]
push dword [esp + 0x24]
push 0
push 0x61
call fcn.0082d310
add esp, 0x18
mov esi, dword [esp + 0x10]
test esi, esi
je 0x7e7078
cmp dword [esp + 0x88], 0
jne 0x7e7028
mov esi, dword [esp + 0xc0]
jmp 0x7e6ff4
mov ecx, dword [esp + 8]
mov edx, 0x11
call fcn.007f75b0
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov edi, eax
push 0
push 0
push dword [esp + 0x68]
push dword [esp + 0x24]
push 0
push 0x61
call fcn.0082d310
add esp, 0x18
test edi, edi
je 0x7e6ff4
mov ecx, dword [esp + 8]
mov edx, edi
call fcn.007f75c0
cmp esi, dword [esp + 0x14]
je 0x7e7028
mov eax, dword [esp + 0x14]
cmp dword [esp + 0xc4], eax
je 0x7e7028
mov ecx, dword [esp + 8]
mov edx, 0x1d
push dword [esp + 0x30]
push dword [esp + 0x48]
push dword [esp + 0x54]
push dword [esp + 0x20]
call fcn.0078dfd0
add esp, 0x10
cmp dword [esp + 0x10], 1
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
je 0x7e7043
mov ecx, dword [esp]
call fcn.007fb640
mov dword [esp + 0x18], eax
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 8]
mov edx, 0x32
cmove eax, dword [esp + 0x1c]
push dword [esp + 0x4c]
push eax
call fcn.007d10d0
add esp, 8
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 4]
mov edi, esi
mov esi, dword [esp]
jmp 0x7e7121
cmp dword [esp + 0x2c], 0
je 0x7e70dc
mov ecx, dword [esp]
call fcn.007fb640
mov esi, dword [esp + 8]
mov dword [esp + 0x18], eax
mov edx, 0x25
mov ecx, esi
push dword [esp + 0x4c]
mov edi, dword [esp + 0x68]
push edi
call fcn.007d10d0
add esp, 8
mov ebx, dword [esp + 0x44]
mov ecx, esi
mov edx, 0x7e
push ebx
push edi
call fcn.007d10d0
add esp, 8
mov dword [esp + 0x34], eax
mov ecx, esi
mov edx, 0x1d
push 0
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0078dfd0
add esp, 0x10
jmp 0x7e7115
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x1c]
mov edx, 0x2a
mov ecx, esi
push edi
push dword [esp + 0x50]
push dword [esp + 0x2c]
call fcn.007d10f0
add esp, 0xc
mov ecx, esi
mov edx, 0x20
push edi
mov dword [esp + 0x1c], eax
push eax
push dword [esp + 0x1c]
call fcn.007d10f0
add esp, 0xc
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 4]
mov edi, esi
mov esi, dword [esp]
cmp byte [esp + 0x20], 0
je 0x7e7154
mov ecx, esi
mov edi, esi
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x74]
push esi
call fcn.007f7750
add esp, 4
mov ecx, dword [esp + 8]
mov edx, 0xf
push esi
mov esi, edi
mov edi, dword [ebp + 8]
call fcn.007f9600
add esp, 4
cmp dword [esp + 0x48], 0
jne 0x7e716d
cmp byte [esp + 0x70], 0
jne 0x7e716d
cmp dword [esp + 0x38], 0
je 0x7e7257
cmp dword [esp + 0x38], 0
jne 0x7e717e
mov dword [esp + 0x68], 0
jmp 0x7e718b
mov ecx, esi
mov edx, ebx
call fcn.0082dbe0
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x48]
mov ecx, esi
push dword [ebp + 0x10]
push ebx
push 3
push 0
push edi
call fcn.0082db60
add esp, 0x14
cmp word [ebx + 0x2a], 0
mov dword [esp + 0x24], eax
jle 0x7e7228
mov eax, dword [esp + 0x68]
xor esi, esi
or dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
movsx edx, si
movzx edi, word [eax + ecx*4 + 0x10]
mov ecx, ebx
call fcn.007f9520
cwde
add eax, dword [esp + 0x54]
cmp dword [esp + 0x24], 0xffffffff
je 0x7e71ed
cmp esi, 0x1f
ja 0x7e71e6
mov ecx, dword [esp + 0x24]
bt ecx, esi
jb 0x7e71ed
mov ecx, edi
test cl, 1
je 0x7e7207
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, ebx
push eax
push esi
push dword [esp + 0x1c]
call fcn.007fc460
add esp, 0xc
jmp 0x7e721f
mov ecx, dword [esp + 8]
mov edx, 0x48
push eax
push 0
call fcn.007d10d0
add esp, 8
mov ebx, dword [esp + 4]
movsx eax, word [ebx + 0x2a]
inc esi
cmp esi, eax
jl 0x7e71b7
mov esi, dword [ebp + 8]
cmp dword [esp + 0x2c], 0
mov edi, esi
mov esi, dword [esp]
jne 0x7e7257
cmp byte [esp + 0x20], 0
jne 0x7e7257
mov ecx, dword [esp + 8]
mov edx, 0x4d
push dword [esp + 0x40]
push dword [esp + 0x20]
call fcn.007d10d0
add esp, 8
mov edx, dword [esp + 0x48]
mov ecx, esi
push dword [ebp + 0x10]
push ebx
push 1
push 1
push edi
call fcn.0082db60
add esp, 0x14
cmp word [ebx + 0x2a], 0
jg 0x7e727e
mov ecx, dword [esp + 4]
jmp 0x7e7352
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov edi, eax
xor esi, esi
movsx eax, word [ecx + 0x28]
cmp esi, eax
jne 0x7e72b3
mov ecx, dword [esp + 8]
mov edx, 0x48
push ebx
push 0
call fcn.007d10d0
mov edx, dword [esp + 0x14]
add esp, 8
jmp 0x7e7340
mov eax, dword [ecx + 4]
lea ecx, [esi + esi*4]
movzx eax, word [eax + ecx*4 + 0x10]
test al, 0x60
je 0x7e72cc
shl eax, 0x1a
sar eax, 0x1f
add ebx, eax
jmp 0x7e7340
mov eax, dword [edx + esi*4]
test eax, eax
js 0x7e72ef
mov ecx, dword [ebp + 8]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 4]
mov ecx, dword [esp]
push ebx
call fcn.007f7750
mov edx, dword [esp + 0x10]
add esp, 4
jmp 0x7e7340
cmp esi, 0x1f
ja 0x7e7305
mov eax, dword [esp + 0x94]
and eax, 1
je 0x7e7305
bt edi, esi
jae 0x7e7328
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.007fc460
add esp, 0xc
mov dword [esp + 0x8c], 0
jmp 0x7e733c
mov ecx, dword [esp + 8]
mov edx, 0x48
push ebx
push 0
call fcn.007d10d0
add esp, 8
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
inc esi
inc ebx
movsx eax, word [ecx + 0x2a]
cmp esi, eax
jl 0x7e728e
test byte [ecx + 0x24], 0x60
je 0x7e736a
mov eax, ecx
mov ecx, dword [esp]
mov edx, dword [esp + 0x58]
push eax
call fcn.00830980
add esp, 4
test byte [esp + 0x94], 1
mov ebx, dword [ebp + 8]
je 0x7e7476
mov edi, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, edi
push dword [esp + 0x58]
call fcn.008019d0
add esp, 4
mov esi, dword [esp + 0x18]
mov ecx, dword [esp]
mov edx, dword [esp + 0x48]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x24]
push edi
push 1
push ebx
push 0x7f
call fcn.0082dcd0
add esp, 0x1c
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
je 0x7e73da
mov ecx, dword [esp + 8]
mov edx, 0x1d
push dword [esp + 0x30]
push dword [esp + 0x48]
push esi
push eax
call fcn.0078dfd0
add esp, 0x10
jmp 0x7e73f1
mov ecx, dword [esp + 8]
mov edx, 0x20
push dword [esp + 0x1c]
push esi
push eax
call fcn.007d10f0
add esp, 0xc
mov eax, dword [esp + 4]
movzx eax, word [eax + 0x2a]
test ax, ax
jle 0x7e7459
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 4]
xor esi, esi
mov ecx, dword [esp + 4]
lea edx, [esi + esi*4]
mov ecx, dword [ecx + 4]
movzx ecx, word [ecx + edx*4 + 0x10]
test cl, 0x60
je 0x7e7426
shl ecx, 0x1a
sar ecx, 0x1f
add ebx, ecx
jmp 0x7e7450
mov ecx, dword [esp + 0xc]
cmp dword [ecx + esi*4], 0
jns 0x7e7450
movsx ecx, word [edi + 0x28]
cmp esi, ecx
je 0x7e7450
mov ecx, dword [esp + 8]
mov edx, edi
push ebx
push esi
push dword [esp + 0x1c]
call fcn.007fc460
add esp, 0xc
movzx eax, word [edi + 0x2a]
inc esi
movsx ecx, ax
inc ebx
cmp esi, ecx
jl 0x7e7408
mov eax, dword [esp + 4]
test byte [eax + 0x24], 0x60
je 0x7e7476
mov ecx, dword [esp]
mov edx, dword [esp + 0x58]
push dword [esp + 4]
call fcn.00830980
add esp, 4
cmp dword [esp + 0x88], 0
jne 0x7e7650
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esp + 4]
lea eax, [esp + 0x90]
movzx esi, cl
mov ecx, dword [esp]
mov edx, ebx
push 0
push dword [esp + 0x10]
push eax
push dword [esp + 0x24]
push esi
push dword [esp + 0x98]
push dword [esp + 0x34]
push dword [esp + 0x5c]
push dword [esp + 0x7c]
push dword [esp + 0x38]
push dword [esp + 0x78]
call fcn.00830d00
add esp, 0x2c
cmp byte [esp + 0x3c], 0
jne 0x7e74db
mov eax, dword [esp + 0x90]
test eax, eax
je 0x7e7526
cmp dword [esp + 0x2c], 0
je 0x7e7505
mov ecx, dword [esp + 8]
mov edx, 0x1d
push dword [esp + 0x30]
push dword [esp + 0x48]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0078dfd0
add esp, 0x10
jmp 0x7e7522
mov ecx, dword [esp + 8]
mov edx, 0x20
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.007d10f0
add esp, 0xc
mov ebx, dword [esp + 4]
cmp dword [esp + 0x38], 0
je 0x7e754b
mov ecx, dword [esp]
mov edx, ebx
push dword [esp + 0x84]
push dword [esp + 0x10]
push 0
push dword [esp + 0x28]
call fcn.0082dd30
add esp, 0x10
mov ecx, dword [esp]
mov edx, ebx
push 0xffffffffffffffff
push dword [esp + 0x54]
push dword [esp + 0x64]
mov esi, dword [esp + 0x20]
push esi
call fcn.0082e1a0
add esp, 0x10
cmp dword [esp + 0x8c], 0
je 0x7e7583
mov ecx, dword [esp + 8]
mov edx, 0x87
push esi
call fcn.007f9600
add esp, 4
cmp byte [esp + 0x3c], 0
jne 0x7e7591
cmp dword [esp + 0x38], 2
jl 0x7e75a5
mov ecx, dword [esp + 8]
mov edx, 0x7a
push 0
push esi
call fcn.007d10d0
add esp, 8
cmp dword [esp + 0x38], 0
je 0x7e761e
mov ebx, dword [esp]
mov edi, dword [esp + 4]
mov ecx, ebx
mov edx, edi
push dword [esp + 0x84]
push dword [esp + 0x10]
mov esi, dword [esp + 0x48]
push esi
push 0
call fcn.0082dd30
add esp, 0x10
xor eax, eax
cmp dword [esp + 0x10], 2
mov ecx, ebx
mov edx, edi
sete al
lea eax, [eax + eax + 4]
push 0
push 0
push eax
push dword [esp + 0x5c]
push esi
push dword [esp + 0x70]
push dword [esp + 0x2c]
call fcn.00831f20
add esp, 0x1c
mov ecx, ebx
mov edx, edi
push dword [esp + 0x84]
push dword [esp + 0x10]
push dword [esp + 0x24]
mov ebx, dword [ebp + 8]
push ebx
call fcn.0082e2b0
add esp, 0x10
jmp 0x7e7650
xor eax, eax
cmp dword [esp + 0x10], 2
mov ecx, dword [esp]
mov edx, dword [esp + 4]
sete al
lea eax, [eax + eax + 4]
push 0
push 0
push eax
push dword [esp + 0x5c]
push dword [esp + 0x50]
push dword [esp + 0x70]
push dword [esp + 0x2c]
call fcn.00831f20
add esp, 0x1c
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
test esi, esi
je 0x7e7677
mov ecx, dword [esp + 8]
mov edx, 0x52
push 1
push esi
call fcn.007d10d0
add esp, 8
mov edx, edi
mov edi, dword [esp + 0x18]
mov ecx, dword [esp]
push edi
push dword [ebp + 0x10]
push dword [esp + 0x24]
push dword [esp + 0x10]
push 2
push dword [ebp + 8]
push 0x7f
call fcn.0082dcd0
add esp, 0x1c
cmp ebx, 1
je 0x7e76f3
cmp ebx, 2
jne 0x7e76bb
mov ecx, dword [esp + 8]
mov edx, edi
call fcn.007fbd70
mov ecx, dword [esp + 0x6c]
call fcn.00817e60
jmp 0x7e76f3
cmp dword [esp + 0x2c], 0
je 0x7e76e8
mov ebx, dword [esp + 8]
mov edx, edi
mov ecx, ebx
call fcn.007fbd70
mov ecx, ebx
mov edx, 5
push dword [esp + 0x34]
push dword [esp + 0x68]
call fcn.007d10d0
add esp, 8
jmp 0x7e76f3
mov ecx, dword [esp + 8]
mov edx, edi
call fcn.007f7790
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x4c]
call fcn.007fbd70
mov eax, dword [esp]
cmp byte [eax + 0x12], 0
jne 0x7e7721
cmp dword [ebp + 0x14], 0
jne 0x7e7721
mov eax, dword [esp]
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x7e7721
mov ecx, dword [esp]
call fcn.0082d970
test esi, esi
je 0x7e78e0
mov edx, fcn.00789b90
xor eax, eax
movzx edi, byte [0xbba593]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edi, eax
jb 0x7e78a9
mov al, byte [0xbba593]
xor ecx, ecx
cmp edx, 2
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbba593], ah
jne 0x7e775a
mov ecx, fcn.00789b90
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e77d1
mov esi, dword [esp + 0x80]
xor eax, eax
cmp ecx, 2
movzx edi, byte [0xbba593]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt edi, eax
jae 0x7e77af
jmp 0x7e78a9
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbba593]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7e7879
mov ecx, fcn.00789b90
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x205
lea ecx, [eax + ecx*2 - 0x2ef75b8e]
mov eax, dword [0xbba580]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbba580], eax
not eax
imul edx, eax
mov eax, dword [0xbba584]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbba584], eax
or esi, edx
not eax
mov edx, dword [0xbba588]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbba588], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbba58c], edx
or byte [0xbba593], al
mov eax, fcn.00789b90
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbba593], al
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 8]
mov edx, 0x50
mov ecx, edi
push 1
push esi
call fcn.007d10d0
add esp, 8
mov ecx, edi
mov edx, 1
call fcn.007d13b0
mov ecx, edi
xor edx, edx
push 0
push 0xbba580
push 0
call fcn.007d1410
add esp, 0xc
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xb8]
call fcn.0082d980
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0xc]
mov ecx, edi
call fcn.00780810
mov ecx, edi
mov edx, esi
call fcn.007cbc20
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.007cb9f0
mov edx, dword [ebp + 0xc]
mov ecx, edi
call fcn.007cb9e0
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.00989fe9
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret