Function at 0x474c20
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, 0x55b0a0
mov ecx, 0x54c43c
neg eax
sbb eax, eax
and eax, 0x55b0a4
test ecx, ecx
mov edx, dword [eax]
mov eax, dword [0x547570]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], eax
je 0x474cca
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x474cca
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x474cca
mov edx, dword [esp + 0x10]
inc esi
push esi
push 0x54c43c
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
lea eax, [esp + 0x84]
push 0xf
push eax
call fcn.004bd990
mov eax, dword [0x54b358]
add esp, 8
test eax, eax
jne 0x474d8e
lea ecx, [esp + 0x7c]
push 0xc5
push ecx
call fcn.004bd990
mov ecx, dword [esp + 0x8c]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x474d5f
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474d26
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x474d2d
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x474d40
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x8c]
call fcn.00405870
jmp 0x474d5f
lea ecx, [esp + 0x84]
call fcn.004124c0
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474d8e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474d8e
mov edx, dword [esp + 0x7c]
add edx, 0xfffffff4
push edx
call fcn.00532222
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 [0x54b358]
test eax, eax
je 0x475185
lea ecx, [esp + 0x7c]
push 0x15f91
push ecx
call fcn.004bb940
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 [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x474e01
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474e01
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff4
push eax
call fcn.00532222
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.0047a750
mov eax, dword [0x547570]
mov ecx, 0x54c43c
add esp, 0xc
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x474e6f
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x474e6f
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x474e6f
mov edx, dword [esp + 0x14]
inc esi
push esi
push 0x54c43c
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x549c40
push eax
call fcn.0048eb00
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x54c6ec
push ecx
mov esi, eax
call fcn.0048eb00
add esp, 0x28
mov edi, eax
cmp esi, 0xa
mov dword [esp + 0x20], edi
jle 0x474eae
mov esi, 0xa
mov edx, dword [0x547570]
cmp esi, 1
mov dword [esp + 0x28], edx
jl 0x474ee1
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 0x475118
mov eax, dword [0x547570]
mov ecx, 0x554e48
test ecx, ecx
mov dword [esp + 0x7c], eax
je 0x474f42
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x474f42
push esi
lea ecx, [esp + 0x80]
call fcn.00405530
test eax, eax
je 0x474f42
mov edx, dword [esp + 0x7c]
inc esi
push esi
push 0x554e48
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x7c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, 0x554e48
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x474f8e
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x474f8e
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x474f8e
mov edx, dword [esp + 0x18]
inc esi
push esi
push 0x554e48
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
push edi
lea ecx, [esp + 0x20]
push 0x548b44
push ecx
mov dword [esp + 0x28], eax
call fcn.00405cb0
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.0048ee40
mov ecx, dword [esp + 0x98]
mov esi, eax
add esp, 0x1c
mov eax, dword [esi]
cmp ecx, eax
je 0x47501c
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474fe9
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x474ff0
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x475003
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x84]
call fcn.00405870
jmp 0x47501c
lea ecx, [esp + 0x7c]
call fcn.004124c0
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47504f
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x475055
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x475055
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.005190f0
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 [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4750b5
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4750b5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4750e0
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4750e0
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x7c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47510b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x47510b
mov edx, dword [esp + 0x7c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
jl 0x474ef3
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 [0x547574]
add ecx, 0xfffffff4
cmp ecx, eax
je 0x475156
mov edx, dword [esp + 0x28]
lea esi, [edx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x475156
push esi
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x475185
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x475185
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
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 0x475252
cmp ebx, 0x1392
jg 0x475252
mov edx, dword [esp + 0x10]
add ebx, 0xffffec78
push 0
push ebx
push 0x54c6ec
push edx
call fcn.0048ea80
mov eax, dword [esp + 0x94]
mov edx, dword [0x547574]
add esp, 0x10
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x475211
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x475211
mov edx, dword [esp + 0x84]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47579b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47579b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
cmp ebx, 0x2b67
jne 0x4752f7
mov ecx, dword [0x54b358]
xor eax, eax
test ecx, ecx
sete al
push eax
push ecx
mov ecx, esp
push 0x549abc
mov dword [0x54b358], eax
call fcn.00412590
call fcn.00466ee0
mov eax, dword [esp + 0x8c]
mov edx, dword [0x547574]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4752bb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4752bb
mov edx, dword [esp + 0x84]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4752ea
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4752ea
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, 0x2b67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [0x54b368]
cmp ebx, eax
jl 0x475737
add eax, 0x80
cmp ebx, eax
jg 0x475737
mov eax, dword [0x547570]
mov ecx, str.Search
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x47537b
mov edx, ecx
shr edx, 0x10
jne 0x47533b
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x18]
push eax
call fcn.00413ae0
jmp 0x47537b
push str.Search
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x47537b
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x47537b
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 0x54c6ec
push eax
call fcn.0048eb00
mov ecx, dword [0x547570]
add esp, 0x14
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push 0x548b44
push edx
call fcn.00405cb0
mov eax, dword [0x547570]
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.0048ee40
mov ecx, dword [esp + 0x98]
mov esi, eax
add esp, 0x1c
mov eax, dword [esi]
cmp ecx, eax
je 0x47542a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4753f7
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4753fe
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x475411
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x84]
call fcn.00405870
jmp 0x47542a
lea ecx, [esp + 0x7c]
call fcn.004124c0
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47545f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47545f
mov edx, dword [esp + 0x80]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47569f
push 0
push 0x3d
lea ecx, [esp + 0x84]
call fcn.00413520
cmp eax, 0xffffffff
je 0x47569f
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.004135a0
sub ebx, dword [0x54b368]
mov eax, dword [ebx*4 + 0x55b3ac]
lea ecx, [ebx*4 + 0x55b3ac]
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x4754cf
mov dword [esp + 0x80], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4754eb
mov edx, dword [0x547570]
mov dword [esp + 0x80], edx
mov eax, dword [ecx]
push eax
lea ecx, [esp + 0x84]
call fcn.00405920
lea ecx, [esp + 0x80]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.004b7090
mov ecx, dword [esp + 0x88]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x47555c
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x475523
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x47552a
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x47553d
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x88]
call fcn.00405870
jmp 0x47555c
lea ecx, [esp + 0x80]
call fcn.004124c0
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47558b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47558b
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
push eax
push 0x547e3c
call fcn.00413840
mov ecx, dword [0x547570]
mov edx, str.ref
test edx, edx
mov dword [esp + 0x14], ecx
je 0x4755ee
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4755ee
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4755ee
mov eax, dword [esp + 0x14]
inc esi
push esi
push str.ref
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
lea ecx, [esp + 0x34]
push ecx
call fcn.004b5c50
lea edx, [esp + 0x34]
push eax
push edx
call fcn.004b7090
mov ecx, dword [0x547570]
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.004059f0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405440
lea ecx, [esp + 0x24]
call fcn.00405700
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00405a90
lea ecx, [esp + 0x28]
call fcn.00405700
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
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.00405700
lea ecx, [esp + 0x1c]
jmp 0x4756f5
push 5
push 0
push 0
push ecx
mov ecx, esp
push 0x554e48
call fcn.00405730
mov ecx, dword [0x54b368]
sub ebx, ecx
push ecx
mov ecx, esp
lea edx, [ebx*4 + 0x55b3ac]
push edx
call fcn.00405440
lea eax, [esp + 0x94]
push eax
call fcn.004b5dd0
add esp, 0xc
mov ecx, eax
call fcn.0042f180
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x80]
call fcn.00405700
lea ecx, [esp + 0x7c]
call fcn.00405700
lea ecx, [esp + 0x20]
call fcn.00405700
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x84]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
cmp ebx, 0x808d
jne 0x475786
lea ecx, [esp + 0x50]
call fcn.004704f0
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x58]
push ecx
push edx
push 0x55f3b0
mov esi, eax
call fcn.0040f710
mov eax, dword [0x55f3b8]
push 0
push 0x4141a0
push esi
push 0x113
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x50]
call fcn.004706f0
lea ecx, [esp + 0x84]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret