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

Disassembly:
mov eax, 0x1084
call fcn.00488a80
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
call fcn.004cc640
test al, al
je 0x466a2a
call fcn.00514570
lea eax, [esp + 0x5c]
push eax
push str._n_vSN
push 3
push esi
push 0x660e54
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, esi
jl 0x466a06
mov ebx, dword [esp + 0x1098]
mov eax, dword [ebx]
cmp eax, esi
je 0x46670a
add eax, 4
jmp 0x46670c
xor eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.004a03e0
mov ecx, dword [str.Google.PhotoViewer.3.0]
push ecx
lea ecx, [esp + 0x44]
call fcn.004a03e0
mov eax, dword [esp + 0x10]
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x466737
lea ecx, [eax + 4]
jmp 0x466739
xor ecx, ecx
mov eax, dword [esp + 0x5c]
mov edx, dword [eax]
lea edi, [esp + 0x78]
push edi
push 1
push esi
push ecx
push eax
call dword [edx + 0xc]
mov edi, eax
cmp edi, esi
jl 0x4667c5
mov eax, dword [esp + 0x78]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.0049d940
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x1c]
je 0x4667b1
lea ecx, [esp + 0x14]
call fcn.004039f0
mov eax, dword [esp + 0x1c]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x4667b1
mov edx, dword [eax]
and edx, 0xff
cmp edx, 0x80
jae 0x4667a8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x4667b1
lea ecx, [esp + 0x14]
call fcn.0049d350
lea ecx, [esp + 0x1c]
call fcn.004039f0
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebp, dword [esp + 0x14]
cmp ebp, esi
mov eax, dword [str.Google.PhotoViewer.3.0]
je 0x46681d
lea esi, [ebp + 4]
test esi, esi
je 0x46680f
test eax, eax
je 0x46680f
lea ecx, [ecx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x466806
test cl, cl
je 0x466800
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x466806
add eax, 2
add esi, 2
test cl, cl
jne 0x4667e0
xor eax, eax
test eax, eax
jmp 0x466831
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jmp 0x466831
test dword [ebp], 0xffffff00
je 0x46681d
cmp byte [esi], 0
jne 0x46682f
test eax, eax
je 0x4669d7
cmp byte [eax], 0
jne 0x46683c
jmp 0x4669d7
cmp esi, eax
sete al
test al, al
jne 0x4669d7
test ebp, ebp
je 0x4669a9
test dword [ebp], 0xffffff00
je 0x4669a9
mov al, byte [ebp + 4]
test al, al
je 0x4669a9
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00465f20
mov eax, dword [esp + 0x28]
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x4669a0
test dword [eax], 0xffffff00
je 0x4669a0
mov cl, byte [eax + 4]
test cl, cl
je 0x4669a0
xor eax, eax
mov edi, 0x6b6e10
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.0049d9d0
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00465490
mov eax, dword [eax]
add esp, 8
cmp eax, esi
je 0x4668d1
add eax, 4
jmp 0x4668d3
xor eax, eax
push 1
push 1
lea ecx, [esp + 0x28]
push ecx
push eax
push str.Preferences
lea ecx, [esp + 0x58]
call fcn.0046b970
lea ecx, [esp + 0x18]
call fcn.004039f0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.004039f0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], esi
call fcn.00436200
lea ecx, [esp + 0x28]
call fcn.004ccff0
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x466929
lea ecx, [eax + 4]
jmp 0x46692b
xor ecx, ecx
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x466938
add eax, 4
jmp 0x46693a
xor eax, eax
push 0xf003f
push ecx
push eax
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
call fcn.004cd0a0
lea ecx, [esp + 0x18]
push ecx
push 0x1000
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x5c]
call fcn.0049da40
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x34]
call fcn.004cd3b0
lea ecx, [esp + 0x28]
call fcn.004cd270
lea ecx, [esp + 0x28]
call fcn.004cd000
lea ecx, [esp + 0x44]
call fcn.0043b130
lea ecx, [esp + 0x1c]
call fcn.004039f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4669b6
lea edx, [eax + 4]
jmp 0x4669b8
xor edx, edx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4669c5
lea ecx, [eax + 4]
jmp 0x4669c7
xor ecx, ecx
mov eax, dword [esp + 0x5c]
mov esi, dword [eax]
push 0
push edx
push ecx
push eax
call dword [esi + 0x18]
mov edi, eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x14]
call fcn.004039f0
xor esi, esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], esi
call fcn.004039f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], esi
call fcn.004039f0
call fcn.00514590
cmp edi, esi
jge 0x46738f
lea ecx, [esp + 0x24]
call fcn.004039f0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1084
ret
mov ebx, dword [esp + 0x1098]
mov eax, dword [ebx]
cmp eax, esi
je 0x466a3c
add eax, 4
jmp 0x466a41
mov eax, 0x6b6e10
mov edx, dword [str.SoftwareClasses]
push eax
push edx
lea eax, [esp + 0x2c]
push 0x699994
push eax
call fcn.00403a60
or ecx, 0xffffffff
add esp, 0x10
xor eax, eax
mov edi, 0x6b6e10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.0049d9d0
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x466a8a
add eax, 4
jmp 0x466a8f
mov eax, 0x6b6e10
push 1
lea ecx, [esp + 0x14]
push ecx
push 0x6b6e10
push eax
push SysReAllocString
lea ecx, [esp + 0x74]
call fcn.0043c7f0
lea ecx, [esp + 0x10]
call fcn.004039f0
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], esi
call fcn.004ccff0
mov eax, dword [esp + 0x68]
cmp eax, esi
je 0x466acd
lea ecx, [eax + 4]
jmp 0x466acf
xor ecx, ecx
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x466adc
add eax, 4
jmp 0x466ade
xor eax, eax
mov edx, dword [esp + 0x60]
push 0x20019
push ecx
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.004cd0a0
test eax, eax
jne 0x466b64
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x1c], 0x1000
call fcn.0049da40
mov edx, dword [esp + 0x74]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x34]
call fcn.004cd430
test eax, eax
je 0x466b41
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x28]
call fcn.004cd270
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x466b64
push eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x74]
call fcn.0049dad0
lea ecx, [esp + 0x28]
call fcn.004cd000
mov eax, dword [esp + 0x6c]
cmp eax, esi
mov edi, eax
mov dword [esp + 0x14], edi
je 0x466c44
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
jae 0x466b9a
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x466c44
mov ebp, dword [str.Google.PhotoViewer.3.0]
lea esi, [edi + 4]
test esi, esi
je 0x466be4
test ebp, ebp
je 0x466be4
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x466bdb
test cl, cl
je 0x466bd5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x466bdb
add eax, 2
add esi, 2
test cl, cl
jne 0x466bb5
xor eax, eax
test eax, eax
jmp 0x466bf3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jmp 0x466bf3
test dword [edi], 0xffffff00
je 0x466c4a
cmp byte [esi], 0
je 0x466c4a
cmp esi, ebp
sete al
test al, al
jne 0x466f4c
xor esi, esi
cmp edi, esi
je 0x466c17
test dword [edi], 0xffffff00
je 0x466c17
mov al, byte [edi + 4]
test al, al
jne 0x466d12
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x6b6e10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.0049d9d0
mov eax, dword [ebx]
cmp eax, esi
je 0x466c5d
add eax, 4
jmp 0x466c62
mov ebp, dword [str.Google.PhotoViewer.3.0]
test ebp, ebp
je 0x466f4c
cmp byte [ebp], 0
jne 0x466bfe
jmp 0x466f4c
mov eax, 0x6b6e10
push 1
lea ecx, [esp + 0x14]
push ecx
push 0x6b6e10
push eax
push SysReAllocString
lea ecx, [esp + 0x90]
call fcn.0043c7f0
lea ecx, [esp + 0x7c]
call fcn.0043c8c0
mov esi, dword [eax]
test esi, esi
mov dword [esp + 0x18], esi
je 0x466caa
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x466caa
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [esp + 0x14], esi
je 0x466ceb
lea ecx, [esp + 0x14]
call fcn.004039f0
test esi, esi
mov dword [esp + 0x14], esi
je 0x466ceb
mov eax, dword [esi]
and eax, 0xff
cmp eax, 0x80
jae 0x466ce2
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x466ceb
lea ecx, [esp + 0x14]
call fcn.0049d350
lea ecx, [esp + 0x18]
call fcn.004039f0
lea ecx, [esp + 0x7c]
call fcn.0043b130
lea ecx, [esp + 0x10]
call fcn.004039f0
mov edi, dword [esp + 0x14]
mov ebp, dword [str.Google.PhotoViewer.3.0]
xor esi, esi
cmp edi, esi
je 0x466e8e
test dword [edi], 0xffffff00
je 0x466e8e
mov al, byte [edi + 4]
test al, al
je 0x466e8e
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x6b6e10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.0049d9d0
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00465490
mov eax, dword [eax]
add esp, 8
cmp eax, esi
je 0x466d6c
add eax, 4
jmp 0x466d6e
xor eax, eax
push 1
push 1
lea edx, [esp + 0x18]
push edx
push eax
push str.Preferences
lea ecx, [esp + 0x90]
call fcn.0046b970
lea ecx, [esp + 0x18]
call fcn.004039f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], esi
call fcn.004039f0
mov eax, dword [esp + 0x14]
cmp eax, esi
lea edx, [eax + 4]
jne 0x466daf
mov edx, 0x6b6e10
cmp edx, esi
mov dword [esp + 0x10], esi
je 0x466dce
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.0049d9d0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x1c], esi
call fcn.00436200
lea ecx, [esp + 0x28]
call fcn.004ccff0
mov eax, dword [esp + 0x84]
cmp eax, esi
je 0x466dfc
lea ecx, [eax + 4]
jmp 0x466dfe
xor ecx, ecx
mov eax, dword [esp + 0x80]
cmp eax, esi
je 0x466e0e
add eax, 4
jmp 0x466e10
xor eax, eax
push 0xf003f
push ecx
mov ecx, dword [esp + 0x84]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004cd0a0
lea edx, [esp + 0x18]
push edx
push 0x1000
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x94]
call fcn.0049da40
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x34]
call fcn.004cd3b0
lea ecx, [esp + 0x28]
call fcn.004cd270
lea ecx, [esp + 0x28]
call fcn.004cd000
lea ecx, [esp + 0x10]
call fcn.004039f0
lea ecx, [esp + 0x7c]
call fcn.0043b130
mov ebp, dword [str.Google.PhotoViewer.3.0]
cmp ebp, esi
mov dword [esp + 0x10], esi
je 0x466ead
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x18]
call fcn.0049d9d0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], esi
call fcn.00436200
lea ecx, [esp + 0x28]
call fcn.004ccff0
mov eax, dword [esp + 0x68]
cmp eax, esi
je 0x466ed5
lea ecx, [eax + 4]
jmp 0x466ed7
xor ecx, ecx
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x466ee4
add eax, 4
jmp 0x466ee6
xor eax, eax
mov edx, dword [esp + 0x60]
push 0xf003f
push ecx
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.004cd0a0
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x78]
call fcn.0049da40
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x34]
call fcn.004cd3b0
lea ecx, [esp + 0x28]
call fcn.004cd270
lea ecx, [esp + 0x28]
call fcn.004cd000
lea ecx, [esp + 0x10]
call fcn.004039f0
mov eax, dword [ebx]
xor ebp, ebp
cmp eax, ebp
je 0x466f59
add eax, 4
jmp 0x466f5e
mov eax, 0x6b6e10
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts]
push eax
push edx
lea eax, [esp + 0x2c]
push 0x699994
push eax
call fcn.00403a60
or ecx, 0xffffffff
add esp, 0x10
xor eax, eax
mov edi, 0x6b6e10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.0049d9d0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x466fa7
add eax, 4
jmp 0x466fac
mov eax, 0x6b6e10
mov edx, dword [str.Application]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push SysReAllocString
lea ecx, [esp + 0x58]
call fcn.0043c7f0
lea ecx, [esp + 0x10]
call fcn.004039f0
mov eax, dword [esp + 0x4c]
cmp eax, ebp
je 0x466fec
test dword [eax], 0xffffff00
je 0x466fec
mov cl, byte [eax + 4]
add eax, 4
test cl, cl
jne 0x466fee
xor eax, eax
mov ecx, dword [esp + 0x48]
cmp ecx, ebp
je 0x466ffb
add ecx, 4
jmp 0x466ffd
xor ecx, ecx
push eax
mov eax, dword [esp + 0x48]
push ecx
push eax
call fcn.004cd210
add esp, 0xc
test al, al
je 0x467062
lea ecx, [esp + 0x28]
call fcn.004ccff0
mov eax, dword [esp + 0x4c]
cmp eax, ebp
je 0x467026
lea ecx, [eax + 4]
jmp 0x467028
xor ecx, ecx
mov eax, dword [esp + 0x48]
cmp eax, ebp
je 0x467035
add eax, 4
jmp 0x467037
xor eax, eax
push 0xf003f
push ecx
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004cd0a0
test eax, eax
lea ecx, [esp + 0x28]
jne 0x46705d
call fcn.004cd300
lea ecx, [esp + 0x28]
call fcn.004cd000
mov edx, dword [str.Google.PhotoViewer.3.0]
cmp edx, ebp
mov dword [esp + 0x20], ebp
je 0x467087
or ecx, 0xffffffff
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.0049d9d0
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x6b6e10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6b6e10
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
call fcn.0049d9d0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4670b6
add eax, 4
jmp 0x4670bb
mov eax, 0x6b6e10
mov ecx, dword [str.ProgID]
push 1
lea edx, [esp + 0x20]
push edx
push ecx
push eax
push SysReAllocString
lea ecx, [esp + 0x3c]
call fcn.0043c7f0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
call fcn.00437cc0
lea ecx, [esp + 0x38]
call fcn.004039f0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], ebp
call fcn.004039f0
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebp
call fcn.004039f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebp
call fcn.004039f0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [esp + 0x2c], ebp
je 0x467185
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x467185
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x46716c
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x467167
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
call ebx
and eax, 0xff
jmp 0x467172
mov eax, 0xff
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, ebp
jne 0x46718b
mov eax, dword [esp + 0x1c]
push eax
call fcn.00499410
add esp, 4
jmp 0x46718b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x4671e6
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4671e6
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x4671d5
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4671d0
push esi
call ebx
and eax, 0xff
jmp 0x4671d5
mov eax, 0xff
cmp eax, ebp
jne 0x4671e6
mov eax, dword [esp + 0x20]
push eax
call fcn.00499410
add esp, 4
lea ecx, [esp + 0x54]
call fcn.004039f0
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], ebp
call fcn.004039f0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], ebp
call fcn.004039f0
mov eax, dword [esp + 0x48]
cmp eax, ebp
mov dword [esp + 0x4c], ebp
je 0x467264
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x467264
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x467253
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x46724e
push esi
call ebx
and eax, 0xff
jmp 0x467253
mov eax, 0xff
cmp eax, ebp
jne 0x467264
mov eax, dword [esp + 0x48]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov dword [esp + 0x48], ebp
je 0x4672bf
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4672bf
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x4672ae
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4672a9
push esi
call ebx
and eax, 0xff
jmp 0x4672ae
mov eax, 0xff
cmp eax, ebp
jne 0x4672bf
mov eax, dword [esp + 0x14]
push eax
call fcn.00499410
add esp, 4
lea ecx, [esp + 0x70]
mov dword [esp + 0x14], ebp
call fcn.004039f0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], ebp
call fcn.004039f0
mov eax, dword [esp + 0x68]
cmp eax, ebp
mov dword [esp + 0x6c], ebp
je 0x467334
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x467334
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x467323
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x46731e
push esi
call ebx
and eax, 0xff
jmp 0x467323
mov eax, 0xff
cmp eax, ebp
jne 0x467334
mov eax, dword [esp + 0x68]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x64]
cmp eax, ebp
mov dword [esp + 0x68], ebp
je 0x46738f
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x46738f
push eax
call edi
and eax, 0xff
cmp eax, 0x7f
jne 0x46737e
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x467379
push esi
call ebx
and eax, 0xff
jmp 0x46737e
mov eax, 0xff
cmp eax, ebp
jne 0x46738f
mov eax, dword [esp + 0x64]
push eax
call fcn.00499410
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4673ee
mov ecx, dword [eax]
and ecx, 0xff
cmp ecx, 0x80
mov esi, eax
jae 0x4673ee
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x7f
jne 0x4673dd
mov edx, dword [esi]
and edx, 0xff
cmp edx, 0x80
jae 0x4673d8
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
jmp 0x4673dd
mov eax, 0xff
test eax, eax
jne 0x4673ee
mov eax, dword [esp + 0x24]
push eax
call fcn.00499410
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1084
ret