Function at 0x474350
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, 0x55a000
mov ecx, 0x54b3f4
neg eax
sbb eax, eax
and eax, 0x55a004
test ecx, ecx
mov edx, dword [eax]
mov eax, dword [0x546560]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], eax
je 0x4743fa
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4743fa
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4743fa
mov edx, dword [esp + 0x10]
inc esi
push esi
push 0x54b3f4
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.004bc8d0
mov eax, dword [0x54a310]
add esp, 8
test eax, eax
jne 0x4744be
lea ecx, [esp + 0x7c]
push 0xc5
push ecx
call fcn.004bc8d0
mov ecx, dword [esp + 0x8c]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x47448f
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474456
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x47445d
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x474470
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x8c]
call fcn.00405870
jmp 0x47448f
lea ecx, [esp + 0x84]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4744be
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4744be
mov edx, dword [esp + 0x7c]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 [0x54a310]
test eax, eax
je 0x4748b5
lea ecx, [esp + 0x7c]
push 0x15f91
push ecx
call fcn.004ba880
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x474531
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474531
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff4
push eax
call fcn.00531732
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.00479e80
mov eax, dword [0x546560]
mov ecx, 0x54b3f4
add esp, 0xc
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x47459f
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x47459f
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x47459f
mov edx, dword [esp + 0x14]
inc esi
push esi
push 0x54b3f4
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 0x548c20
push eax
call fcn.0048dbb0
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0x54b6a4
push ecx
mov esi, eax
call fcn.0048dbb0
add esp, 0x28
mov edi, eax
cmp esi, 0xa
mov dword [esp + 0x20], edi
jle 0x4745de
mov esi, 0xa
mov edx, dword [0x546560]
cmp esi, 1
mov dword [esp + 0x28], edx
jl 0x474611
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 0x474848
mov eax, dword [0x546560]
mov ecx, 0x553dd8
test ecx, ecx
mov dword [esp + 0x7c], eax
je 0x474672
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x474672
push esi
lea ecx, [esp + 0x80]
call fcn.00405530
test eax, eax
je 0x474672
mov edx, dword [esp + 0x7c]
inc esi
push esi
push 0x553dd8
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x7c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, 0x553dd8
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x4746be
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4746be
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x4746be
mov edx, dword [esp + 0x18]
inc esi
push esi
push 0x553dd8
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
push edi
lea ecx, [esp + 0x20]
push 0x547b34
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.0048def0
mov ecx, dword [esp + 0x98]
mov esi, eax
add esp, 0x1c
mov eax, dword [esi]
cmp ecx, eax
je 0x47474c
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474719
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x474720
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x474733
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x84]
call fcn.00405870
jmp 0x47474c
lea ecx, [esp + 0x7c]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47477f
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x474785
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x474785
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.00518490
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4747e5
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4747e5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474810
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x474810
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x7c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47483b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x47483b
mov edx, dword [esp + 0x7c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x30]
inc edi
cmp edi, eax
jl 0x474623
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 [0x546564]
add ecx, 0xfffffff4
cmp ecx, eax
je 0x474886
mov edx, dword [esp + 0x28]
lea esi, [edx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474886
push esi
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4748b5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4748b5
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 0x474982
cmp ebx, 0x1392
jg 0x474982
mov edx, dword [esp + 0x10]
add ebx, 0xffffec78
push 0
push ebx
push 0x54b6a4
push edx
call fcn.0048db30
mov eax, dword [esp + 0x94]
mov edx, dword [0x546564]
add esp, 0x10
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474941
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474941
mov edx, dword [esp + 0x84]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474ecb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474ecb
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
cmp ebx, 0x2b67
jne 0x474a27
mov ecx, dword [0x54a310]
xor eax, eax
test ecx, ecx
sete al
push eax
push ecx
mov ecx, esp
push 0x548a9c
mov dword [0x54a310], eax
call fcn.00412740
call fcn.00466610
mov eax, dword [esp + 0x8c]
mov edx, dword [0x546564]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4749eb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4749eb
mov edx, dword [esp + 0x84]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474a1a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474a1a
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, 0x2b67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [0x54a320]
cmp ebx, eax
jl 0x474e67
add eax, 0x80
cmp ebx, eax
jg 0x474e67
mov eax, dword [0x546560]
mov ecx, str.Search
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x474aab
mov edx, ecx
shr edx, 0x10
jne 0x474a6b
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x18]
push eax
call fcn.00413c90
jmp 0x474aab
push str.Search
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x474aab
push esi
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x474aab
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 0x54b6a4
push eax
call fcn.0048dbb0
mov ecx, dword [0x546560]
add esp, 0x14
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push 0x547b34
push edx
call fcn.00405cb0
mov eax, dword [0x546560]
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.0048def0
mov ecx, dword [esp + 0x98]
mov esi, eax
add esp, 0x1c
mov eax, dword [esi]
cmp ecx, eax
je 0x474b5a
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474b27
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x474b2e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x474b41
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x84]
call fcn.00405870
jmp 0x474b5a
lea ecx, [esp + 0x7c]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474b8f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474b8f
mov edx, dword [esp + 0x80]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x474dcf
push 0
push 0x3d
lea ecx, [esp + 0x84]
call fcn.004136d0
cmp eax, 0xffffffff
je 0x474dcf
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.00413750
sub ebx, dword [0x54a320]
mov eax, dword [ebx*4 + 0x55a30c]
lea ecx, [ebx*4 + 0x55a30c]
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x474bff
mov dword [esp + 0x80], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x474c1b
mov edx, dword [0x546560]
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.004b6140
mov ecx, dword [esp + 0x88]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x474c8c
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x474c53
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x474c5a
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x474c6d
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x88]
call fcn.00405870
jmp 0x474c8c
lea ecx, [esp + 0x80]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x474cbb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x474cbb
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
push eax
push 0x546e2c
call fcn.004139f0
mov ecx, dword [0x546560]
mov edx, str.ref
test edx, edx
mov dword [esp + 0x14], ecx
je 0x474d1e
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x474d1e
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x474d1e
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.004b4d00
lea edx, [esp + 0x34]
push eax
push edx
call fcn.004b6140
mov ecx, dword [0x546560]
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 0x474e25
push 5
push 0
push 0
push ecx
mov ecx, esp
push 0x553dd8
call fcn.00405730
mov ecx, dword [0x54a320]
sub ebx, ecx
push ecx
mov ecx, esp
lea edx, [ebx*4 + 0x55a30c]
push edx
call fcn.00405440
lea eax, [esp + 0x94]
push eax
call fcn.004b4e80
add esp, 0xc
mov ecx, eax
call fcn.0046fbf0
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 0x474eb6
lea ecx, [esp + 0x50]
call fcn.0046fc20
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x58]
push ecx
push edx
push 0x55e2f8
mov esi, eax
call fcn.0040f8b0
mov eax, dword [0x55e300]
push 0
push 0x414350
push esi
push 0x113
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [esp + 0x50]
call fcn.0046fe20
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