Function at 0x4578b0
Capabilities:
Capture webcam image
Create process on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x419
push esi
call edi
lea ecx, [esp + 0x40]
push ecx
push eax
push 0x41d
push esi
call edi
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edx
push ecx
push esi
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, 0x4e9cd8
mov ecx, 0x4dcd68
neg eax
sbb eax, eax
and eax, 0x4e9cdc
test ecx, ecx
mov edx, dword [eax]
mov eax, dword [0x4d9540]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], eax
je 0x45795a
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x45795a
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x45795a
mov edx, dword [esp + 0x10]
inc esi
push esi
push 0x4dcd68
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
lea eax, [esp + 0x84]
push 0xf
push eax
call fcn.0048eb30
mov eax, dword [0x4dcab4]
add esp, 8
test eax, eax
jne 0x457a1e
lea ecx, [esp + 0x7c]
push 0xc5
push ecx
call fcn.0048eb30
mov ecx, dword [esp + 0x8c]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x4579ef
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4579b6
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4579bd
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4579d0
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x8c]
call fcn.00401630
jmp 0x4579ef
lea ecx, [esp + 0x84]
call fcn.0040e950
mov eax, dword [esi]
mov dword [esp + 0x84], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x7c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x457a1e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457a1e
mov edx, dword [esp + 0x7c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x84]
mov ebp, dword [sym.imp.USER32.dll_AppendMenuW]
push eax
push 0x2b67
push 0
push ebx
call ebp
mov eax, dword [0x4dcab4]
test eax, eax
je 0x457e15
lea ecx, [esp + 0x7c]
push 0x15f91
push ecx
call fcn.0048cba0
mov eax, dword [eax]
add esp, 8
push eax
push 0x808d
push 0
push ebx
call ebp
mov eax, dword [esp + 0x7c]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x457a91
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457a91
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
push 0
push 0
push 0x800
push ebx
call ebp
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x2c]
push ecx
push ebx
push edx
call fcn.00459640
mov eax, dword [0x4d9540]
mov ecx, 0x4dcd68
add esp, 0xc
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x457aff
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x457aff
push esi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x457aff
mov edx, dword [esp + 0x14]
inc esi
push esi
push 0x4dcd68
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x4db69c
push eax
call fcn.00480e80
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x4dcf28
push ecx
mov esi, eax
call fcn.00480e80
add esp, 0x28
mov edi, eax
cmp esi, 0xa
mov dword [esp + 0x20], edi
jle 0x457b3e
mov esi, 0xa
mov edx, dword [0x4d9540]
cmp esi, 1
mov dword [esp + 0x28], edx
jl 0x457b71
push 0
push 0
push 0x800
push ebx
call ebp
neg edi
sbb edi, edi
push str.Default__:_my_Surfok_:_
and edi, 0xfffffff8
push 0x1388
add edi, 8
push edi
push ebx
call ebp
mov edi, 1
inc esi
cmp esi, edi
mov dword [esp + 0x30], esi
jle 0x457da8
mov eax, dword [0x4d9540]
mov ecx, 0x4e3a5c
test ecx, ecx
mov dword [esp + 0x7c], eax
je 0x457bd2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x457bd2
push esi
lea ecx, [esp + 0x80]
call fcn.004012f0
test eax, eax
je 0x457bd2
mov edx, dword [esp + 0x7c]
inc esi
push esi
push 0x4e3a5c
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x7c]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
mov ecx, 0x4e3a5c
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x457c1e
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x457c1e
push esi
lea ecx, [esp + 0x1c]
call fcn.004012f0
test eax, eax
je 0x457c1e
mov edx, dword [esp + 0x18]
inc esi
push esi
push 0x4e3a5c
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
push edi
lea ecx, [esp + 0x20]
push 0x4da88c
push ecx
mov dword [esp + 0x28], eax
call fcn.00401a70
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push edx
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.00480fb0
mov ecx, dword [esp + 0x98]
mov esi, eax
add esp, 0x1c
mov eax, dword [esi]
cmp ecx, eax
je 0x457cac
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x457c79
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x457c80
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x457c93
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x84]
call fcn.00401630
jmp 0x457cac
lea ecx, [esp + 0x7c]
call fcn.0040e950
mov esi, dword [esi]
mov dword [esp + 0x7c], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x24]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x457cdf
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x457ce5
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
jmp 0x457ce5
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x7c]
push 0x3d
push 0
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004b4910
mov edx, dword [esp + 0x28]
add esp, 0x10
xor ecx, ecx
lea eax, [edi + 0x1388]
push edx
mov edx, dword [esp + 0x24]
cmp edx, edi
push eax
setne cl
dec ecx
and ecx, 8
push ecx
push ebx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x457d45
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x457d45
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x457d70
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x457d70
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x7c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x457d9b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x457d9b
mov edx, dword [esp + 0x7c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
jl 0x457b83
mov eax, dword [esp + 0x20]
push 8
add eax, 0x1388
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [esp + 0x28]
mov eax, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, eax
je 0x457de6
mov edx, dword [esp + 0x28]
lea esi, [edx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457de6
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x457e15
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457e15
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push 0
push edi
push 0
push eax
push ecx
push 0x102
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ebx, eax
cmp ebx, 0x1388
jl 0x457ee2
cmp ebx, 0x1392
jg 0x457ee2
mov edx, dword [esp + 0x10]
add ebx, 0xffffec78
push 0
push ebx
push 0x4dcf28
push edx
call fcn.00480e00
mov eax, dword [esp + 0x94]
mov edx, dword [0x4d9544]
add esp, 0x10
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x457ea1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457ea1
mov edx, dword [esp + 0x84]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45842b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45842b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
cmp ebx, 0x2b67
jne 0x457f87
mov ecx, dword [0x4dcab4]
xor eax, eax
test ecx, ecx
sete al
push eax
push ecx
mov ecx, esp
push 0x4db4cc
mov dword [0x4dcab4], eax
call fcn.0040ea20
call fcn.00455690
mov eax, dword [esp + 0x8c]
mov edx, dword [0x4d9544]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x457f4b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457f4b
mov edx, dword [esp + 0x84]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x457f7a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x457f7a
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, 0x2b67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [0x4dcac4]
cmp ebx, eax
jl 0x4583c7
add eax, 0x80
cmp ebx, eax
jg 0x4583c7
mov eax, dword [0x4d9540]
mov ecx, str.Search
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x45800b
mov edx, ecx
shr edx, 0x10
jne 0x457fcb
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x18]
push eax
call fcn.0040ff70
jmp 0x45800b
push str.Search
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x45800b
push esi
lea ecx, [esp + 0x1c]
call fcn.004012f0
test eax, eax
je 0x45800b
mov edi, dword [esp + 0x18]
lea ecx, [esi + esi]
mov edx, ecx
mov esi, str.Search
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x4dcf28
push eax
call fcn.00480e80
mov ecx, dword [0x4d9540]
add esp, 0x14
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push 0x4da88c
push edx
call fcn.00401a70
mov eax, dword [0x4d9540]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x88], eax
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x90]
push eax
push ecx
push edx
call fcn.00480fb0
mov ecx, dword [esp + 0x98]
mov esi, eax
add esp, 0x1c
mov eax, dword [esi]
cmp ecx, eax
je 0x4580ba
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x458087
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x45808e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4580a1
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x84]
call fcn.00401630
jmp 0x4580ba
lea ecx, [esp + 0x7c]
call fcn.0040e950
mov esi, dword [esi]
mov dword [esp + 0x7c], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x80]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4580ef
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4580ef
mov edx, dword [esp + 0x80]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x45832f
push 0
push 0x3d
lea ecx, [esp + 0x84]
call fcn.0040f9b0
cmp eax, 0xffffffff
je 0x45832f
mov ecx, dword [esp + 0x7c]
inc eax
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x7c]
sub edx, eax
push edx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040fa30
sub ebx, dword [0x4dcac4]
mov eax, dword [ebx*4 + 0x4e9fe4]
lea ecx, [ebx*4 + 0x4e9fe4]
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x45815f
mov dword [esp + 0x80], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x45817b
mov edx, dword [0x4d9540]
mov dword [esp + 0x80], edx
mov eax, dword [ecx]
push eax
lea ecx, [esp + 0x84]
call fcn.004016e0
lea ecx, [esp + 0x80]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00489820
mov ecx, dword [esp + 0x88]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x4581ec
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4581b3
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4581ba
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4581cd
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x88]
call fcn.00401630
jmp 0x4581ec
lea ecx, [esp + 0x80]
call fcn.0040e950
mov eax, dword [esi]
mov dword [esp + 0x80], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x28]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45821b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45821b
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
push eax
push 0x4d9b84
call fcn.0040fcd0
mov ecx, dword [0x4d9540]
mov edx, str.ref
test edx, edx
mov dword [esp + 0x14], ecx
je 0x45827e
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x45827e
push esi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x45827e
mov eax, dword [esp + 0x14]
inc esi
push esi
push str.ref
push eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
lea ecx, [esp + 0x34]
push ecx
call fcn.00488620
lea edx, [esp + 0x34]
push eax
push edx
call fcn.00489820
mov ecx, dword [0x4d9540]
mov eax, dword [eax]
add esp, 0xc
mov dword [esp + 0x24], ecx
mov edx, dword [eax - 8]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004017b0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401200
lea ecx, [esp + 0x24]
call fcn.004014c0
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00401850
lea ecx, [esp + 0x28]
call fcn.004014c0
lea ecx, [esp + 0x30]
call fcn.004014c0
lea ecx, [esp + 0x34]
call fcn.004014c0
lea ecx, [esp + 0x14]
call fcn.004014c0
mov eax, dword [esp + 0x1c]
push 5
push 0
push 0
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x80]
call fcn.004014c0
lea ecx, [esp + 0x1c]
jmp 0x458385
push 5
push 0
push 0
push ecx
mov ecx, esp
push 0x4e3a5c
call fcn.004014f0
mov ecx, dword [0x4dcac4]
sub ebx, ecx
push ecx
mov ecx, esp
lea edx, [ebx*4 + 0x4e9fe4]
push edx
call fcn.00401200
lea eax, [esp + 0x94]
push eax
call fcn.004887a0
add esp, 0xc
mov ecx, eax
call fcn.004568d0
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x80]
call fcn.004014c0
lea ecx, [esp + 0x7c]
call fcn.004014c0
lea ecx, [esp + 0x20]
call fcn.004014c0
lea ecx, [esp + 0x18]
call fcn.004014c0
lea ecx, [esp + 0x84]
call fcn.004014c0
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
cmp ebx, 0x808d
jne 0x458416
lea ecx, [esp + 0x50]
call fcn.00456690
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x58]
push ecx
push edx
push 0x4edfe0
mov esi, eax
call fcn.0040bbb0
mov eax, dword [0x4edfe8]
push 0
push 0x410630
push esi
push 0x113
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x50]
call fcn.00456890
lea ecx, [esp + 0x84]
call fcn.004014c0
lea ecx, [esp + 0x10]
call fcn.004014c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68