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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5655f4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4e14
call fcn.00531970
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x4e10], eax
push ebx
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x4e28]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
call fcn.0041fc60
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x416e66
mov eax, dword [ebp + 8]
sub eax, 0
je 0x416928
sub eax, 1
je 0x4166e7
sub eax, 5
jne 0x4178a4
mov eax, dword [0x5d95c8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x5d95c8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [esp + 0x1c]
add esi, 0x670
mov ecx, 0x18b
lea edi, [esp + 0xcb4]
lea edx, [esp + 0xd4c]
rep movsd dword es:[edi], dword [esi]
push edx
lea ecx, [esp + 0x28]
call fcn.004019c0
mov eax, dword [esp + 0xd08]
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x4e38], 0x1b
mov dword [esp + 0x30], eax
call fcn.0041c9c0
mov esi, eax
test esi, esi
jne 0x416320
mov eax, dword [0x5d95c8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x24]
call fcn.004015d0
xor eax, eax
jmp 0x4178a9
mov ecx, dword [esi + 0x52c]
mov edi, dword [esi + 0x1ec]
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x700]
push 0
mov dword [esp + 0xa0], edx
mov edx, dword [ecx + 0x183c]
push 0x110c
push edx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], 0x11
mov dword [esp + 0xac], 0x400
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x416471
mov ebx, dword [esp + 0x1c]
add ebx, 0x181c
push edi
mov ecx, ebx
call fcn.00519ebf
test eax, eax
jne 0x416471
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
push edi
mov ecx, ebx
mov dword [esp + 0x38], 1
call fcn.00519e38
call fcn.00483550
test eax, eax
je 0x41645b
mov edx, dword [esp + 0x28]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.00482f00
test al, al
mov eax, dword [esp + 0x2c]
je 0x4163ee
cmp eax, 1
je 0x4163e7
cmp eax, 0xc
jne 0x41640a
mov eax, 0xb
jmp 0x416406
cmp eax, 0xb
jne 0x41640a
mov eax, dword [esi + 0x574]
sub eax, 1
neg eax
sbb eax, eax
and eax, 0xfffffff5
add eax, 0xc
mov dword [esp + 0x2c], eax
push eax
push eax
push edi
mov ecx, ebx
call fcn.00410c70
mov esi, dword [esp + 0x1c]
mov edx, dword [esi + 0x194c]
mov edi, dword [esp + 0x40]
push edx
mov dword [esp + 0x90], edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41645b
lea eax, [esp + 0x88]
add esi, 0x192c
push eax
mov ecx, esi
call fcn.00410c30
test eax, eax
je 0x41645b
mov eax, dword [esp + 0x2c]
push eax
push eax
push edi
mov ecx, esi
call fcn.00410c70
mov ecx, dword [0x5d95c8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x24]
jmp 0x41789f
mov esi, dword [esi + 0x5b8]
test esi, esi
jne 0x416498
mov edx, dword [0x5d95c8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x24]
call fcn.004015d0
xor eax, eax
jmp 0x4178a9
mov edi, dword [esp + 0xcf8]
imul edi, edi, 0x64
mov ebx, dword [edi + esi + 0x58]
add edi, esi
test ebx, ebx
je 0x416304
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
add esi, 0x181c
push ebx
mov ecx, esi
mov dword [esp + 0x20], 3
call fcn.00519e38
cmp dword [esp + 0x12d8], 0
jne 0x41654a
mov eax, dword [esp + 0xd04]
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x14]
cmp eax, 7
jne 0x4164fa
mov eax, 2
mov dword [esp + 0x14], eax
jmp 0x41654e
cmp eax, 8
jne 0x41650a
mov eax, 3
mov dword [esp + 0x14], eax
jmp 0x41654e
cmp eax, 5
jne 0x41651a
mov eax, 3
mov dword [esp + 0x14], eax
jmp 0x41654e
cmp eax, 4
jne 0x41652a
mov eax, 2
mov dword [esp + 0x14], eax
jmp 0x41654e
cmp eax, 9
jne 0x41653a
mov eax, 2
mov dword [esp + 0x14], eax
jmp 0x41654e
cmp eax, 0xa
jne 0x41654e
mov eax, 3
mov dword [esp + 0x14], eax
jmp 0x41654e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x12d8]
cmp ecx, 1
jne 0x4165c6
mov ecx, dword [esp + 0xd04]
mov dword [edi + 0x54], ecx
mov eax, dword [esp + 0x14]
cmp eax, 3
jne 0x416577
mov eax, 5
jmp 0x416699
cmp eax, 2
jne 0x416586
mov eax, 4
jmp 0x416699
cmp eax, 9
jne 0x416595
mov eax, 4
jmp 0x416699
cmp eax, 0xa
jne 0x4165a4
mov eax, 5
jmp 0x416699
cmp eax, 7
jne 0x4165b3
mov eax, 4
jmp 0x416699
cmp eax, 8
jne 0x41669d
mov eax, 5
jmp 0x416699
cmp ecx, 2
jne 0x41662b
mov edx, dword [esp + 0xd04]
mov dword [edi + 0x54], edx
mov eax, dword [esp + 0x14]
cmp eax, 5
jne 0x4165e6
lea eax, [ecx + 6]
jmp 0x416699
cmp eax, 4
jne 0x4165f5
mov eax, 7
jmp 0x416699
cmp eax, 2
jne 0x416604
mov eax, 7
jmp 0x416699
cmp eax, 3
jne 0x416613
mov eax, 8
jmp 0x416699
cmp eax, 9
jne 0x41661f
mov eax, 7
jmp 0x416699
cmp eax, 0xa
jne 0x41669d
mov eax, 8
jmp 0x416699
cmp ecx, 3
jne 0x416683
mov eax, dword [esp + 0xd04]
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x416647
lea eax, [ecx + 7]
jmp 0x416699
cmp eax, 2
jne 0x416653
mov eax, 9
jmp 0x416699
cmp eax, 7
jne 0x41665f
mov eax, 9
jmp 0x416699
cmp eax, 8
jne 0x41666b
mov eax, 0xa
jmp 0x416699
cmp eax, 5
jne 0x416677
mov eax, 0xa
jmp 0x416699
cmp eax, 4
jne 0x41669d
mov eax, 9
jmp 0x416699
cmp eax, 4
jne 0x41668f
mov eax, 2
jmp 0x416699
cmp eax, 5
jne 0x41669d
mov eax, 3
mov dword [esp + 0x14], eax
push eax
push eax
push ebx
mov ecx, esi
call fcn.00410c70
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x194c]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41645b
cmp dword [esp + 0x1234], 0xffffffff
je 0x41645b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push eax
mov eax, dword [edi + 0x5c]
push eax
add ecx, 0x192c
jmp 0x416456
mov edx, dword [0x5d95c8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x5d95c8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esp + 0x1c]
add esi, 0x670
mov ecx, 0x18b
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x6ec], 0
je 0x4168fa
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x24]
call fcn.004019c0
mov edx, dword [esp + 0x120]
push 0
push edx
mov ecx, ebx
mov dword [esp + 0x4e38], 0x1a
call fcn.0041c9c0
test eax, eax
je 0x41690c
mov ecx, dword [eax + 0x5b8]
test ecx, ecx
je 0x41690c
mov eax, dword [esp + 0x110]
mov dword [esp + 0x40], eax
imul eax, eax, 0x64
add eax, ecx
mov esi, eax
mov ebx, dword [esi + 0x58]
test ebx, ebx
mov dword [esp + 0x28], esi
je 0x41690c
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
add edi, 0x181c
push ebx
mov ecx, edi
mov dword [esp + 0x24], 3
call fcn.00519e38
cmp dword [esp + 0x6f0], 1
jl 0x416802
mov eax, dword [esp + 0x11c]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x18]
cmp eax, 3
jne 0x4167d2
mov eax, 2
jmp 0x416840
cmp eax, 5
jne 0x4167de
mov eax, 4
jmp 0x416840
cmp eax, 8
jne 0x4167ea
mov eax, 7
jmp 0x416840
cmp eax, 0xa
jne 0x4167f6
mov eax, 9
jmp 0x416840
cmp eax, 0xe
jne 0x416844
mov eax, 0xd
jmp 0x416840
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x416812
mov eax, 3
jmp 0x416840
cmp eax, 4
jne 0x41681e
mov eax, 5
jmp 0x416840
cmp eax, 7
jne 0x41682a
mov eax, 8
jmp 0x416840
cmp eax, 9
jne 0x416836
mov eax, 0xa
jmp 0x416840
cmp eax, 0xd
jne 0x416844
mov eax, 0xe
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x45c]
mov edx, dword [esp + 0x438]
add edx, ecx
cmp dword [esp + 0x40], edx
jl 0x41689c
push ebx
mov ecx, edi
call fcn.00410bb0
mov esi, eax
test esi, esi
je 0x416898
push esi
mov ecx, edi
call fcn.00519e77
cmp dword [eax + 4], 0
mov ecx, edi
jl 0x416880
mov eax, dword [esp + 0x18]
push eax
push eax
jmp 0x416884
push 3
push 3
push esi
call fcn.00410c70
push esi
mov ecx, edi
call fcn.00410bd0
mov esi, eax
test esi, esi
jne 0x416868
mov eax, dword [esp + 0x18]
push eax
push eax
push ebx
mov ecx, edi
call fcn.00410c70
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0x6f0], eax
setg al
mov dword [ecx + 0x40], eax
mov edx, dword [esi + 0x194c]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4168f1
cmp dword [esp + 0x64c], 0xffffffff
je 0x4168f1
mov eax, dword [esp + 0x18]
push eax
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x5c]
push ecx
lea ecx, [esi + 0x192c]
call fcn.00410c70
lea ecx, [esp + 0x20]
call fcn.004015d0
mov edx, dword [0x5d95c8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4178a4
mov eax, dword [0x5d95c8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x20]
call fcn.004015d0
xor eax, eax
jmp 0x4178a9
mov ecx, dword [0x5d95c8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x5d95c8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esp + 0x1c]
add esi, 0xac
mov ecx, 0x171
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416976
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x4e30], 0
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4169ab
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov esi, 3
cmp dword [esp + 0x2a0], esi
mov byte [esp + 0x4e30], 1
je 0x416a1b
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.Desktop.IPAddr
call fcn.004019c0
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x4e38], 2
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0x4e38], 1
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e34], 3
call fcn.00402060
lea ecx, [esp + 0x60]
jmp 0x416a91
push 0x581528
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.DeviceManage.Cloud
call fcn.004019c0
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x4e3c], 4
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0x4e3c], 1
call fcn.004ea820
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x4e3c], 5
call fcn.00402100
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e34], 6
call fcn.00402060
lea ecx, [esp + 0x14]
push ecx
call fcn.00402060
lea ecx, [esp + 0x64]
call fcn.004015d0
lea ecx, [esp + 0x58]
mov byte [esp + 0x4e30], 1
call fcn.004015d0
lea edx, [esp + 0x150]
push edx
lea eax, [esp + 0x1c]
push str.:__s__r_n
push eax
call fcn.004020e0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.004065f0
add esp, 0x18
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4e34], 7
call fcn.00402060
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov byte [esp + 0x4e30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416b09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416b23
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.Desktop.Port
mov byte [esp + 0x4e38], 8
call fcn.004019c0
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x4e38], 9
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0x4e38], 8
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e34], 0xa
call fcn.00402060
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x4e30], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416ba7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2a8]
push ecx
lea edx, [esp + 0x34]
push str.:__d__r_n
push edx
call fcn.004020e0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.004065f0
add esp, 0x18
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x4e34], 0xb
call fcn.00402060
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
mov byte [esp + 0x4e30], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416c2c
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.Desktop.DevName
mov byte [esp + 0x4e38], 0xc
call fcn.004019c0
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x4e38], 0xd
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0x4e38], 0xc
call fcn.004ea820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e34], 0xe
call fcn.00402060
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x4e30], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416cb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x110]
push ecx
lea edx, [esp + 0x38]
push str.:__s__r_n
push edx
call fcn.004020e0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.004065f0
add esp, 0x18
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x4e34], 0xf
call fcn.00402060
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
mov byte [esp + 0x4e30], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416d38
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
push 0x58153c
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.Desktop.DevType
mov byte [esp + 0x4e3c], 0x10
call fcn.004019c0
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x4e3c], 0x11
call fcn.004ea360
mov ecx, eax
mov byte [esp + 0x4e3c], 0x10
call fcn.004ea820
push eax
lea edx, [esp + 0x88]
mov bl, 0x12
push edx
mov byte [esp + 0x4e3c], bl
call fcn.00402100
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e34], 0x13
call fcn.00402060
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov byte [esp + 0x4e30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416ddd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov byte [esp + 0x4e30], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x688], 0
jg 0x417200
mov ecx, dword [esp + 0xcc]
mov esi, dword [esp + 0x24]
push 0
push ecx
mov ecx, esi
call fcn.0041c9c0
test eax, eax
jne 0x416e6d
mov edx, dword [0x5d95c8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0x38]
call fcn.004015d0
lea ecx, [esp + 0x34]
call fcn.004015d0
lea ecx, [esp + 0x30]
call fcn.004015d0
lea ecx, [esp + 0x18]
call fcn.004015d0
lea ecx, [esp + 0x14]
call fcn.004015d0
xor eax, eax
jmp 0x4178a9
mov byte [eax + 0x5c0], 0
mov eax, dword [esp + 0x290]
mov ecx, dword [esp + 0xcc]
push eax
push ecx
mov ecx, esi
call fcn.0041cc70
test eax, eax
mov dword [esp + 0x28], eax
je 0x4171f4
mov edx, eax
mov eax, dword [edx + 0x1ec]
test eax, eax
mov dword [esp + 0x20], eax
je 0x416fb3
mov ebx, dword [esp + 0x1c]
add ebx, 0x181c
push eax
mov ecx, ebx
call fcn.00410bb0
mov edi, eax
test edi, edi
je 0x416f79
jmp 0x416ed0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x183c]
push edi
push 1
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov ecx, ebx
mov dword [esp + 0x44], eax
call fcn.00519e77
test eax, eax
je 0x416f02
push eax
call fcn.0050fd2d
add esp, 4
push ebx
push edi
mov ecx, esi
call fcn.004123c0
test eax, eax
je 0x416f54
push edi
mov ecx, ebx
call fcn.00410bb0
mov esi, eax
test esi, esi
je 0x416f54
lea ecx, [ecx]
push esi
mov ecx, ebx
call fcn.00519e77
test eax, eax
je 0x416f35
push eax
call fcn.0050fd2d
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x183c]
push esi
push 1
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jne 0x416f20
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x183c]
push edi
push 0
push 0x1101
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0x40]
test edi, edi
jne 0x416ed0
cmp dword [esp + 0x2c0], 2
jne 0x416f8e
mov eax, dword [esp + 0x20]
push 7
push 7
push eax
jmp 0x416fac
cmp dword [esp + 0x640], 1
jne 0x416fa3
mov ecx, dword [esp + 0x20]
push 0xc
push 0xc
push ecx
jmp 0x416fac
mov edx, dword [esp + 0x20]
push 1
push 1
push edx
mov ecx, ebx
call fcn.00410c70
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x110]
lea eax, [esi + 0xce0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416fe4
test dl, dl
je 0x416fe0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416fe4
add eax, 2
add ecx, 2
test dl, dl
jne 0x416fc4
xor eax, eax
jmp 0x416fe9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x417015
push 0x5b8
push eax
lea eax, [esi + 0xc9c]
push eax
call fcn.00530d30
push 0x5b8
push 0
add esi, 0x1254
push esi
call fcn.00530d30
add esp, 0x18
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx]
push 0
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x30]
push 1
call fcn.0041c450
test eax, eax
je 0x417046
cmp dword [ebx + 0x528], 4
je 0x417046
push 0
push 0
push ebx
call dword [sym.imp.PlayBack.dll_Playback_InsertDevice]
add esp, 0xc
call fcn.00404130
test eax, eax
je 0x417057
push ebx
mov ecx, eax
call fcn.00478960
mov ecx, dword [0x5d95ac]
test ecx, ecx
je 0x417068
push 0
call fcn.00408d70
cmp dword [esp + 0x2a0], 3
je 0x4170d0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.004065f0
lea edx, [esp + 0x44]
push edx
push eax
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x4e48], 0x14
call fcn.004065f0
add esp, 0x18
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4e34], 0x15
call fcn.0040ceb0
lea ecx, [esp + 0x78]
call fcn.004015d0
lea ecx, [esp + 0x70]
mov byte [esp + 0x4e30], 0x10
call fcn.004015d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
mov ecx, dword [eax + 0x80]
lea esi, [eax + 0x181c]
push esi
call fcn.0051e13e
mov edi, dword [ebx + 0x1ec]
mov edx, dword [ebx + 0x52c]
lea ecx, [esp + 0x88]
lea eax, [esp + 0x6fc]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], 0x11
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0x400
call fcn.00410c30
test eax, eax
je 0x4171f4
push edi
mov ecx, esi
call fcn.00519ebf
test eax, eax
jne 0x4171f4
mov ebx, dword [esp + 0xcc]
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
push edi
mov ecx, esi
mov dword [esp + 0x30], 1
call fcn.00519e38
call fcn.00483550
test eax, eax
je 0x4171f4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.00482f00
test al, al
je 0x4171f4
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x41719a
cmp eax, 0xc
jne 0x4171a3
mov eax, 0xb
mov dword [esp + 0x24], eax
push eax
push eax
push edi
mov ecx, esi
call fcn.00410c70
mov esi, dword [esp + 0x1c]
mov edx, dword [esi + 0x194c]
mov edi, dword [esp + 0x28]
push edx
mov dword [esp + 0x90], edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4171f4
lea eax, [esp + 0x88]
add esi, 0x192c
push eax
mov ecx, esi
call fcn.00410c30
test eax, eax
je 0x4171f4
mov eax, dword [esp + 0x24]
push eax
push eax
push edi
mov ecx, esi
call fcn.00410c70
mov ecx, dword [0x5d95c8]
push ecx
jmp 0x416e33
cmp dword [esp + 0x2a0], esi
je 0x417264
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.004065f0
lea edx, [esp + 0x44]
push edx
push eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x4e48], 0x16
call fcn.004065f0
add esp, 0x18
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4e34], 0x17
call fcn.0040ceb0
lea ecx, [esp + 0x54]
call fcn.004015d0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4e30], 0x10
call fcn.004015d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x417286
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
add eax, 0x181c
push eax
call fcn.0051e13e
mov eax, dword [esp + 0xcc]
mov ecx, 0x16e
lea esi, [esp + 0xcc]
lea edi, [esp + 0x6fc]
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
push eax
call fcn.0041c9c0
mov ebx, eax
test ebx, ebx
je 0x4171f4
call fcn.004e9e60
test eax, eax
je 0x4173c7
cmp dword [eax + 0x3c], 0
je 0x4173c7
cmp dword [ebx + 0x1e4], 0
jbe 0x4172ea
mov edx, dword [0x5d95c8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x417877
mov eax, dword [ebx + 0x1c4]
cmp eax, dword [esp + 0x8c0]
jne 0x41730c
mov ecx, dword [ebx + 0x1c8]
cmp ecx, dword [esp + 0x8c4]
je 0x4173c7
mov eax, dword [esp + 0x6fc]
push 0x5b8
lea edx, [esp + 0x12e8]
mov ecx, 0x16e
lea esi, [esp + 0x700]
lea edi, [esp + 0x12e8]
push edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.0041bef0
call fcn.0048f730
push 0x5c4
lea ecx, [esp + 0xcb8]
push 0
push ecx
mov dword [esp + 0x34], eax
call fcn.00530d30
mov edx, dword [ebx + 0x1e4]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1278], 0x14
mov ecx, 0x16e
mov esi, ebx
lea edi, [esp + 0xcc0]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x127c], edx
lea ecx, [esp + 0xcc0]
add esp, 0xc
lea edx, [esp + 0xb0]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x28]
push edx
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc0], 0x5c4
call fcn.0048f590
mov eax, dword [esp + 0x290]
mov ecx, dword [esp + 0x24]
push eax
mov esi, eax
mov eax, dword [esp + 0x700]
push eax
call fcn.0041d600
test eax, eax
je 0x4171f4
mov ecx, dword [0x5d95ac]
test ecx, ecx
je 0x41745d
mov edx, dword [esp + 0x6fc]
push edx
call fcn.00408560
test eax, eax
je 0x41745d
test esi, esi
jle 0x41745d
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], esi
mov edx, dword [ebx + 0x5b8]
add edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
mov edi, 0x57e9e8
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41744c
mov eax, dword [esp + 0x20]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x417440
add dword [esp + 0x3c], 0x64
add dword [esp + 0x20], 0x40
sub dword [esp + 0x28], 1
jne 0x417419
mov eax, dword [ebx + 0x1ec]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4171f4
mov ecx, dword [esp + 0x1c]
push 0
push 0
mov edx, eax
add ecx, 0x181c
push edx
call fcn.00410c70
cmp dword [ebx + 0x5b8], 0
mov ecx, dword [esp + 0x8c4]
mov eax, dword [esp + 0x8c0]
mov edx, dword [esp + 0x8e0]
mov dword [ebx + 0x1c8], ecx
lea edi, [ebx + 0x1f8]
mov ecx, 0xcc
lea esi, [esp + 0x8f4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x318]
mov esi, dword [ebx + 0x33c]
mov dword [ebx + 0x1c4], eax
mov eax, dword [esp + 0x8c8]
mov dword [ebx + 0x1e4], edx
mov dword [ebx + 0x1cc], eax
mov dword [esp + 0x48], ecx
je 0x416e2c
cmp dword [ebx + 0x330], 0
jle 0x417512
push 3
mov eax, ecx
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push 0
add eax, esi
push eax
push ebx
lea eax, [ecx + 0x181c]
push eax
call fcn.004138c0
push 0x3580
lea edx, [esp + 0x18a0]
push 0
push edx
call fcn.00530d30
add esp, 0xc
test esi, esi
jle 0x41756a
mov eax, dword [ebx + 0x528]
push eax
call fcn.004fb9f0
add esp, 4
test eax, eax
je 0x4171f4
mov ecx, dword [ebx + 0x1e4]
mov edi, dword [eax]
push 0
push 0x3580
lea edx, [esp + 0x18a4]
push edx
mov edx, dword [ebx]
push 0xffffffffffffffff
push 0x66
push edx
push ecx
mov ecx, eax
mov eax, dword [edi + 0x3c]
call eax
mov ecx, dword [esp + 0x48]
add esi, ecx
test esi, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], esi
jle 0x41778d
mov edx, ecx
imul edx, edx, 0xd6
lea eax, [esp + 0x1940]
sub eax, edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], eax
mov esi, dword [ebx + 0x5b8]
add esi, dword [esp + 0x28]
push 0x57e9e8
lea ecx, [esp + 0x40]
mov edi, 3
call fcn.004019c0
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x2c], eax
mov byte [esp + 0x4e30], 0x18
jl 0x4175de
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x40]
call fcn.00401980
call fcn.00483550
test eax, eax
je 0x417705
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6fc]
push edx
push ecx
lea edx, [esp + 0x54]
push edx
mov ecx, eax
call fcn.00482f00
test al, al
je 0x4176ac
cmp dword [esi + 0x40], 1
jne 0x41766b
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x2c], eax
jl 0x41763c
lea ecx, [esp + 0x3c]
push str.Connected
push ecx
call fcn.00402d10
add esp, 8
test al, al
jne 0x41763c
mov edi, 0xd
jmp 0x417705
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x41764c
lea edi, [eax + 4]
jmp 0x417705
cmp eax, 2
jne 0x417659
lea edi, [eax + 5]
jmp 0x417705
mov dword [esp + 0x4c], 1
mov edi, 9
jmp 0x417705
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x2c], edx
jl 0x41768b
lea eax, [esp + 0x3c]
push str.Connected
push eax
call fcn.00402d10
add esp, 8
test al, al
je 0x417700
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x417698
lea edi, [eax + 5]
jmp 0x417705
cmp eax, 2
jne 0x4176a2
lea edi, [eax + 6]
jmp 0x417705
cmp eax, 1
jne 0x417705
lea edi, [eax + 9]
jmp 0x417705
cmp dword [esi + 0x40], 1
jne 0x4176e0
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x2c], ecx
jl 0x4176d9
lea edx, [esp + 0x3c]
push str.Connected
push edx
call fcn.00402d10
add esp, 8
test al, al
jne 0x4176d9
mov edi, 0xd
jmp 0x417705
mov edi, 2
jmp 0x417705
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x2c], eax
jl 0x417705
lea ecx, [esp + 0x3c]
push str.Connected
push ecx
call fcn.00412350
add esp, 8
test al, al
je 0x417705
mov edi, 0xe
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0xffff0002
push edx
push edi
push edi
push esi
add ecx, 0x181c
call fcn.00410b40
push 0xc
mov edi, eax
call fcn.0050fcfd
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], 2
mov ecx, dword [esi + 0x48]
add esp, 4
mov dword [eax + 4], ecx
mov edx, dword [ebx]
mov ecx, dword [esp + 0x1c]
push eax
push edi
add ecx, 0x181c
mov dword [eax + 8], edx
call fcn.00410cd0
lea ecx, [esp + 0x3c]
mov dword [esi + 0x58], edi
mov byte [esp + 0x4e30], 0x10
call fcn.004015d0
mov eax, dword [esp + 0x2c]
add dword [esp + 0x40], 0xd6
add dword [esp + 0x28], 0x64
add eax, 1
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
jl 0x4175a1
lea ecx, [esp + 0xc0]
call fcn.0049aaa0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x4e30], 0x19
call fcn.0049a2d0
mov edi, dword [esp + 0x1c]
movzx eax, al
test eax, eax
mov dword [edi + 0x1814], eax
je 0x4177c7
mov eax, dword [esp + 0x20]
push 2
push eax
jmp 0x4177ce
mov ecx, dword [esp + 0x20]
push 1
push ecx
lea ecx, [edi + 0x181c]
call fcn.00410b90
mov edx, dword [ebx]
mov ecx, dword [esp + 0x24]
push 0
push 0xffffffffffffffff
push edx
push 1
call fcn.0041c450
test eax, eax
je 0x417812
cmp dword [ebx + 0x528], 4
mov esi, dword [sym.imp.PlayBack.dll_Playback_InsertDevice]
je 0x417808
push 0
push 1
push ebx
call esi
add esp, 0xc
push 1
push 1
push ebx
call esi
add esp, 0xc
mov ecx, dword [0x5d95ac]
test ecx, ecx
je 0x41783e
push 1
call fcn.00408d70
mov eax, dword [esp + 0xcc]
mov ecx, dword [0x5d95ac]
push 0
push eax
add ecx, 0x7e14c
call fcn.0044e740
mov ecx, dword [edi + 0x194c]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x417856
mov ecx, edi
call fcn.004153b0
mov edx, dword [0x5d95c8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x4e30], 0x10
call fcn.0049a910
lea ecx, [esp + 0x38]
call fcn.004015d0
lea ecx, [esp + 0x34]
call fcn.004015d0
lea ecx, [esp + 0x30]
call fcn.004015d0
lea ecx, [esp + 0x18]
call fcn.004015d0
lea ecx, [esp + 0x14]
call fcn.004015d0
mov eax, 1
mov ecx, dword [esp + 0x4e28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e10]
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 4