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

Disassembly:
sub esp, 0x470
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x24c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x30], ebx
jne 0x47db0e
lea eax, [esp + 0x20]
push eax
call fcn.0047b860
cmp eax, ebx
mov dword [esp + 0x30], eax
jl 0x47e003
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x24c]
mov edx, dword [eax]
push esi
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [edx + 0x3c]
mov esi, eax
cmp esi, ebx
jl 0x47dfed
mov eax, dword [ebp + 0x238]
cmp eax, ebx
lea ecx, [ebp + 0x238]
je 0x47db4c
mov edx, dword [eax]
cmp edx, dword [esp + 0x38]
je 0x47db62
mov esi, 0x8004e00b
jmp 0x47dfed
push ebx
push ebx
push ebx
push 0x40000002
push 0xffffffffffffffff
push 0xffffffffffffffff
push 4
push ecx
call sym.vidcap60.exe__SfList_CreateExZ_32
mov esi, eax
cmp esi, ebx
jl 0x47dfed
push edi
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], edi
jle 0x47df77
lea ebx, [ebx]
mov eax, dword [ebp + 0x24c]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x78]
push edx
push edi
push eax
mov dword [esp + 0x2c], ebx
call dword [ecx + 0x48]
test eax, eax
jge 0x47dc2f
mov eax, dword [esp + 0x40]
push eax
push ebx
mov ecx, ebp
call fcn.0047c370
cmp eax, ebx
je 0x47dbdd
mov ecx, dword [esp + 0x40]
xor esi, esi
inc ecx
mov dword [esp + 0x40], ecx
jmp 0x47dc1d
mov edx, dword [ebp + 0x238]
lea ecx, [esp + 0x2c]
push ecx
push 0xffffffffffffffff
push 0x98
push ebx
push edx
call sym.vidcap60.exe__SfList_AllocAndInsertItem_20
mov esi, eax
cmp esi, ebx
jl 0x47df66
mov eax, dword [ebp + 0x238]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ecx + edx*4]
cmp ecx, ebx
je 0x47dc1b
call fcn.0047e6b0
jmp 0x47dc1d
xor eax, eax
or dword [eax + 0x8c], 1
mov dword [eax + 8], ebp
mov dword [eax + 0x10], edi
jmp 0x47df66
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
xor eax, eax
cmp edx, 1
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x50]
mov ecx, 0xb
lea edi, [esp + 0x48]
mov dword [esp + 0x34], edx
rep stosd dword es:[edi], eax
jne 0x47dc6f
mov dword [esp + 0x1c], 0x12
jmp 0x47dc7c
cmp edx, 2
jne 0x47dc7c
mov dword [esp + 0x1c], 0x428
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x24c]
mov edx, dword [eax]
push 1
push ecx
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [edx + 0x44]
mov esi, eax
test esi, esi
jl 0x47de07
mov eax, dword [esp + 0x54]
cmp eax, ebx
jbe 0x47dd11
mov edi, dword [esp + 0x10]
test edi, edi
je 0x47dce0
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x54]
push 0x42
push edx
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x10], eax
jmp 0x47dcfa
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x47dd07
mov esi, 0x8007000e
mov eax, dword [esp + 0x54]
mov dword [esp + 0x50], eax
jmp 0x47dd23
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x60]
cmp eax, ebp
jbe 0x47dd86
mov edi, dword [esp + 0x18]
test edi, edi
je 0x47dd5b
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x60]
push 0x42
push edx
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x18], eax
jmp 0x47dd6f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x58], eax
jne 0x47dd7c
mov esi, 0x8007000e
mov eax, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
jmp 0x47dd92
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebp
test esi, esi
jl 0x47dfa4
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x24c]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
push 1
push edx
lea edx, [esp + 0x50]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
mov ebp, dword [esp + 0x34]
jl 0x47de01
mov ecx, dword [esp + 0x54]
mov eax, ebp
dec eax
mov dword [esp + 0x1c], ecx
je 0x47ddec
dec eax
jne 0x47ddf9
cmp ecx, 0x428
jae 0x47ddf9
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], 0x428
mov dword [esp + 0x28], 1
jmp 0x47de11
cmp ecx, 0x12
jae 0x47ddf9
mov dword [esp + 0x1c], 0x12
mov dword [esp + 0x28], 1
mov edi, dword [esp + 0x14]
jmp 0x47de11
mov ebp, dword [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov eax, dword [esp + 0x44]
push eax
push ebp
mov ecx, edi
call fcn.0047c370
cmp ebp, 1
mov esi, eax
jne 0x47de30
test esi, esi
je 0x47de34
mov ecx, esi
call fcn.0047e730
test esi, esi
jne 0x47de83
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x238]
lea ecx, [esp + 0x2c]
push ecx
push 0xffffffffffffffff
add edx, 0x98
push edx
add edi, 0x238
push 0
push eax
call sym.vidcap60.exe__SfList_AllocAndInsertItem_20
mov esi, eax
test esi, esi
jl 0x47dfa4
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x47de7d
call fcn.0047e6b0
mov esi, eax
jmp 0x47de7f
xor esi, esi
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esi + 4], ebp
mov dword [esi + 0x10], ebx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0xc], ecx
mov dword [esp + 0x24], 0
je 0x47def8
mov ecx, dword [edi + 0x24c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0047ef70
mov esi, eax
test esi, esi
jge 0x47df5a
mov edx, dword [esp + 0x24]
mov eax, dword [0x613f28]
push ebx
push edx
push eax
call sym.vidcap60.exe__SfGetString_8
push eax
lea ecx, [esp + 0x80]
push ecx
call sym.vidcap60.exe_SfPrintF
add esp, 0xc
lea edx, [esp + 0x78]
push edx
push esi
mov ecx, edi
call fcn.0047bce0
jmp 0x47df52
cmp ebp, 1
mov dword [esi + 8], edi
jne 0x47df0a
mov dword [esp + 0x24], 0xc56a
jmp 0x47df17
cmp ebp, 2
jne 0x47df17
mov dword [esp + 0x24], 0xc56b
mov eax, dword [esp + 0x24]
mov ecx, dword [0x613f28]
push ebx
push eax
push ecx
call sym.vidcap60.exe__SfGetString_8
push eax
lea edx, [esp + 0x80]
push edx
call sym.vidcap60.exe_SfPrintF
add esp, 0xc
lea eax, [esp + 0x78]
push eax
push 0x8004e011
mov ecx, edi
call fcn.0047bce0
or dword [esi + 0x8c], 3
mov dword [esp + 0x30], 1
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
xor esi, esi
xor ebx, ebx
mov eax, dword [esp + 0x3c]
inc edi
cmp edi, eax
mov dword [esp + 0x20], edi
jl 0x47dba0
cmp esi, ebx
jl 0x47df9c
cmp dword [esp + 0x30], ebx
je 0x47df86
mov esi, 0x4e008
mov eax, dword [ebp + 0x23c]
and eax, 0xffffffdf
mov ecx, ebp
mov dword [ebp + 0x23c], eax
call fcn.0047c740
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalHandle]
jmp 0x47dfa8
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x47dfca
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ecx
call ebx
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47dfe6
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x18]
push edx
call ebx
push eax
call edi
xor ebx, ebx
cmp esi, ebx
pop edi
je 0x47dff1
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x34]
cmp esi, ebx
jl 0x47e000
mov ecx, ebp
call fcn.0047c500
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x470
ret