Function at 0x402050
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov dword [ebp - 0x450], 0
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov eax, dword [ebp + 8]
mov dword [0x42c06c], eax
push 0x3e8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [0x42c070], eax
cmp dword [ebp + 0xc], 0
jne 0x402125
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x434], eax
push str.AMCapIcon
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x42c], 0x3e8
mov dword [ebp - 0x428], 0x3e8
mov dword [ebp - 0x430], 6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x44c], 0x100b
mov dword [ebp - 0x448], 0x4025f0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x444], 0
lea ecx, [ebp - 0x44c]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx edx, ax
test edx, edx
jne 0x402125
xor eax, eax
jmp 0x402538
push 0xc
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [0x42c074], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x854], eax
mov eax, dword [0x42c074]
push eax
mov ecx, dword [ebp - 0x854]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x42c078
mov edx, dword [ebp - 0x854]
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [ebp - 0x854]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x12c
push 0x140
push 0
push 0x80000000
push 0x2cf0000
push str.amcap
push 0x3e8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x42c0b0], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00418c90
add esp, 8
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
mov edx, dword [0x42c0b0]
push edx
push 0
push 0
push 0
push 0
push 0x54800000
push 0
push str.StatusClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x42c0b4], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [0x42c0b0]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x104
push 0x42c24c
push 0x4255dc
push str.ImgFilePath
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push 0x28
push 0
push 0x42c3fc
call fcn.00419e10
add esp, 0xc
push 0x28
push 0
push 0x42c3d4
call fcn.00419e10
add esp, 0xc
mov dword [0x42c424], 0
mov dword [0x42c428], 0
mov dword [0x42c3bc], 0
mov dword [0x42f834], 0
mov dword [0x42c38c], 0
mov dword [0x42c390], 0
mov dword [0x42f844], 0
mov byte [ebp - 0x850], 0
mov dl, byte [ebp - 0x850]
mov byte [ebp - 0x400], dl
push 0x400
lea eax, [ebp - 0x850]
push eax
push 0x4255dc
push str.VideoDevice2
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push 0x400
lea ecx, [ebp - 0x400]
push ecx
push 0x4255dc
push str.AudioDevice2
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
mov byte [0x42c3d0], 0
call fcn.00407a90
push 1
push str.CaptureAudio
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov dword [0x42c3c0], eax
push 0
push str.CaptureCC
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov dword [0x42c3c4], eax
mov dword [0x42c438], 1
push 1
push str.MasterStream
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov dword [0x42c3a8], eax
push 0
push str.UseFrameRate
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov dword [0x42c53c], eax
push 0x51615
push 0x425560
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov dword [ebp - 0x424], eax
fild dword [ebp - 0x424]
fdivr qword [0x425558]
fst qword [0x42c430]
fmul qword [0x425550]
call fcn.00419ec8
mov dword [ebp - 0x85c], eax
fild dword [ebp - 0x85c]
fdiv qword [0x425550]
fstp qword [0x42c430]
fld qword [0x425548]
fstp qword [0x42c430]
push 0
push str.UseTimeLimit
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov dword [0x42c534], eax
mov dword [0x42c538], 1
push 0
push str.TimeLimit
push str.annie
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov dword [0x42c540], eax
mov dword [0x42f80c], 0
lea edx, [ebp - 0x400]
push edx
lea eax, [ebp - 0x850]
push eax
call fcn.004078b0
add esp, 8
cmp dword [0x42f80c], 0
je 0x402444
mov dword [0x42f818], 1
mov dword [0x42f81c], 0
mov ecx, dword [0x42f7f8]
imul ecx, ecx, 0x58
mov edx, dword [ecx + 0x42cc28]
mov dword [0x42f808], edx
mov eax, dword [0x42f7f8]
imul eax, eax, 0x58
mov ecx, dword [eax + 0x42cc24]
mov dword [0x42f804], ecx
mov dword [0x42f820], 0
mov dword [0x42f830], 0
push 0x20
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.00419e10
add esp, 0xc
mov dword [ebp - 0x420], 0x20
mov dword [ebp - 0x41c], 5
mov eax, dword [0x42698c]
mov dword [ebp - 0x414], eax
mov ecx, dword [0x426990]
mov dword [ebp - 0x410], ecx
mov edx, dword [0x426994]
mov dword [ebp - 0x40c], edx
mov eax, dword [0x426998]
mov dword [ebp - 0x408], eax
mov dword [0x42c0bc], 0
mov dword [0x42c0c0], 0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x858], eax
push str.UnregisterDeviceNotification
mov ecx, dword [ebp - 0x858]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42c0bc], eax
push str.RegisterDeviceNotificationA
mov edx, dword [ebp - 0x858]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42c0c0], eax
mov dword [0x42c0b8], 0
cmp dword [0x42c0c0], 0
je 0x40252e
push 0
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [0x42c0b0]
push ecx
call dword [0x42c0c0]
mov dword [0x42c0b8], eax
call fcn.00402010
mov eax, 1
mov esp, ebp
pop ebp
ret