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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5eaaa1
push eax
mov eax, 0x1058
mov dword fs:[0], esp
call fcn.005dffd0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x98]
mov dword [esp + 0x3c], 0x36fc9e60
mov word [esp + 0x40], 0xc465
mov word [esp + 0x42], 0x11cf
mov byte [esp + 0x44], 0x80
mov byte [esp + 0x45], 0x56
mov byte [esp + 0x46], 0x44
mov byte [esp + 0x47], 0x45
mov byte [esp + 0x48], 0x53
mov byte [esp + 0x49], 0x54
mov byte [esp + 0x4a], 0
mov byte [esp + 0x4b], 0
call fcn.005df190
lea ecx, [esp + 0x10]
mov dword [esp + 0x1070], 0
call fcn.005df190
lea ecx, [esp + 0x18]
mov byte [esp + 0x1070], 1
call fcn.005df190
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1070], 2
call fcn.005df190
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1070], 3
call fcn.005df190
push 2
push 0
lea eax, [esp + 0x44]
push 0
push eax
mov byte [esp + 0x1080], 4
call dword [0x5fca90]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x34], ebx
je 0x4c20d0
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xac]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xac]
xor edi, edi
push ecx
push edi
push ebx
mov dword [esp + 0xb8], 0x1c
call dword [0x5fca94]
test eax, eax
je 0x4c20c9
mov ebp, dword [0x5fca74]
lea edx, [esp + 0x38]
lea eax, [esp + 0xc8]
push edx
push 0xfa0
lea ecx, [esp + 0xb4]
push eax
inc edi
push ecx
push ebx
mov dword [esp + 0x28], edi
call dword [0x5fca9c]
mov eax, dword [esp + 0x38]
cmp eax, 0x7cf
jbe 0x4c18e1
mov eax, 0x7cf
mov dword [esp + 0x38], eax
lea edx, [esp + 0xc8]
lea ecx, [esp + 0x18]
push edx
mov word [esp + eax*2 + 0xcc], 0
call fcn.005df27a
push str.USBVID_29DAPID_
lea ecx, [esp + 0x1c]
call fcn.005df36a
mov esi, eax
test esi, esi
jl 0x4c1f0a
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x37]
mov eax, dword [eax - 8]
cmp eax, ecx
jl 0x4c1f0a
lea edi, [esi + 0x20]
push 1
lea edx, [esp + 0x90]
push edi
push edx
lea ecx, [esp + 0x24]
call fcn.005df30a
mov eax, dword [eax]
push 0x6292ec
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x8c]
test eax, eax
sete bl
call fcn.005df184
test bl, bl
je 0x4c1bf5
add esi, 0x16
push 0x21
lea ecx, [esp + 0x74]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.005df30a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1074], 5
call fcn.005df274
lea ecx, [esp + 0x70]
mov byte [esp + 0x1070], 4
call fcn.005df184
push 6
lea edx, [esp + 0xa0]
push 0xb
push edx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov esi, eax
lea eax, [esp + 0x5c]
push 6
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1078], 6
call fcn.005df364
mov esi, dword [esi]
mov ecx, dword [eax]
push esi
push ecx
mov byte [esp + 0x1078], 7
call ebp
add esp, 8
test eax, eax
jne 0x4c1b6a
push 4
lea edx, [esp + 0x84]
push 6
push edx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push 0x629ae4
push eax
mov byte [esp + 0x1078], 8
call ebp
add esp, 8
test eax, eax
je 0x4c1a47
push 4
lea ecx, [esp + 0x7c]
push 6
push ecx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov edx, dword [eax]
push 0x630744
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x78]
test eax, eax
setne bl
call fcn.005df184
test bl, bl
je 0x4c1a47
mov bl, 1
jmp 0x4c1a49
xor bl, bl
lea ecx, [esp + 0x80]
mov byte [esp + 0x1070], 7
call fcn.005df184
test bl, bl
jne 0x4c1b6a
push 2
lea eax, [esp + 0x8c]
push 0x1b
push eax
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
mov esi, dword [0x5fca50]
push eax
call esi
add esp, 4
cmp eax, 0xe
lea ecx, [esp + 0x88]
setl bl
call fcn.005df184
test bl, bl
jne 0x4c1b6a
push 2
lea ecx, [esp + 0x94]
push 0x1d
push ecx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x90]
test eax, eax
sete bl
call fcn.005df184
test bl, bl
jne 0x4c1b6a
push 2
lea edx, [esp + 0xa4]
push 0x1d
push edx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
add esp, 4
cmp eax, 0xc
lea ecx, [esp + 0xa0]
setg bl
call fcn.005df184
test bl, bl
jne 0x4c1b6a
push 2
lea eax, [esp + 0x58]
push 0x1f
push eax
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x54]
test eax, eax
sete bl
call fcn.005df184
test bl, bl
jne 0x4c1b6a
push 2
lea ecx, [esp + 0x88]
push 0x1f
push ecx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
add esp, 4
cmp eax, 0x1f
lea ecx, [esp + 0x84]
setg bl
call fcn.005df184
test bl, bl
je 0x4c1b6c
mov bl, 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1070], 6
call fcn.005df184
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1070], 4
call fcn.005df184
test bl, bl
jne 0x4c1f02
lea edx, [esp + 0x4c]
push 0x17
push edx
lea ecx, [esp + 0x18]
call fcn.005df388
push eax
lea eax, [esp + 0x68]
push str.333D01
push eax
mov byte [esp + 0x107c], 9
call fcn.005df268
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1074], 0xa
call fcn.005df274
lea ecx, [esp + 0x64]
mov byte [esp + 0x1070], 9
call fcn.005df184
mov byte [esp + 0x1070], 4
lea ecx, [esp + 0x4c]
jmp 0x4c1ea7
push 1
lea ecx, [esp + 0x70]
push edi
push ecx
lea ecx, [esp + 0x24]
call fcn.005df30a
mov edx, dword [eax]
push 0x6295ac
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x6c]
test eax, eax
sete bl
call fcn.005df184
test bl, bl
je 0x4c1f02
add esi, 0x16
push 0x25
lea eax, [esp + 0xac]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.005df30a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1074], 0xb
call fcn.005df274
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1070], 4
call fcn.005df184
push 6
lea ecx, [esp + 0x24]
push 0xb
push ecx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov esi, eax
lea edx, [esp + 0x68]
push 6
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x1078], 0xc
call fcn.005df364
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x1078], 0xd
call ebp
add esp, 8
test eax, eax
jne 0x4c1e24
push 4
lea ecx, [esp + 0x98]
push 6
push ecx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov edx, dword [eax]
push 0x629ae4
push edx
mov byte [esp + 0x1078], 0xe
call ebp
add esp, 8
test eax, eax
je 0x4c1d10
push 4
lea eax, [esp + 0x78]
push 6
push eax
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov ecx, dword [eax]
push 0x630744
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x74]
test eax, eax
setne bl
call fcn.005df184
test bl, bl
je 0x4c1d10
mov bl, 1
jmp 0x4c1d12
xor bl, bl
lea ecx, [esp + 0x94]
mov byte [esp + 0x1070], 0xd
call fcn.005df184
test bl, bl
jne 0x4c1e24
push 2
lea edx, [esp + 0x80]
push 0x1f
push edx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
mov esi, dword [0x5fca50]
push eax
call esi
add esp, 4
cmp eax, 0xe
lea ecx, [esp + 0x7c]
setl bl
call fcn.005df184
test bl, bl
jne 0x4c1e24
push 2
lea eax, [esp + 0xa8]
push 0x21
push eax
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0xa4]
test eax, eax
sete bl
call fcn.005df184
test bl, bl
jne 0x4c1e24
push 2
lea ecx, [esp + 0x54]
push 0x21
push ecx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
add esp, 4
cmp eax, 0xc
lea ecx, [esp + 0x50]
setg bl
call fcn.005df184
test bl, bl
jne 0x4c1e24
push 2
lea edx, [esp + 0x5c]
push 0x23
push edx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x58]
test eax, eax
sete bl
call fcn.005df184
test bl, bl
jne 0x4c1e24
push 2
lea eax, [esp + 0x64]
push 0x23
push eax
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
add esp, 4
cmp eax, 0x1f
lea ecx, [esp + 0x60]
setg bl
call fcn.005df184
test bl, bl
je 0x4c1e26
mov bl, 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x1070], 0xc
call fcn.005df184
lea ecx, [esp + 0x20]
mov byte [esp + 0x1070], 4
call fcn.005df184
test bl, bl
jne 0x4c1f02
lea ecx, [esp + 0x28]
push 0x1b
push ecx
lea ecx, [esp + 0x18]
call fcn.005df388
push eax
lea edx, [esp + 0x28]
push str.333D01
push edx
mov byte [esp + 0x107c], 0xf
call fcn.005df268
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1074], 0x10
call fcn.005df274
lea ecx, [esp + 0x24]
mov byte [esp + 0x1070], 0xf
call fcn.005df184
mov byte [esp + 0x1070], 4
lea ecx, [esp + 0x28]
call fcn.005df184
push 7
lea eax, [esp + 0x34]
push 7
push eax
lea ecx, [esp + 0x1c]
call fcn.005df30a
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1074], 0x11
call fcn.005df274
lea ecx, [esp + 0x30]
mov byte [esp + 0x1070], 4
call fcn.005df184
push 0x63c040
lea ecx, [esp + 0x1c]
call fcn.005df27a
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.005df36a
cmp eax, 7
jge 0x4c1f27
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
lea edx, [esp + 0xac]
push edx
push edi
push ebx
call dword [0x5fca94]
test eax, eax
jne 0x4c18a7
jmp 0x4c20c9
add eax, 0xfffffff9
push 6
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.005df30a
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1074], 0x12
call fcn.005df274
lea ecx, [esp + 0x14]
mov byte [esp + 0x1070], 4
call fcn.005df184
mov ecx, dword [esp + 0x1c]
push ecx
push 0x62c7f8
lea ecx, [esp + 0x18]
call fcn.005df55c
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.005df334
call fcn.0054ac10
add esp, 4
cmp eax, 6
mov dword [0x6321dc], eax
ja case.default.0x4c1fa0
xor ecx, ecx
mov cl, byte [eax + 0x4c214c]
jmp dword [ecx*4 + 0x4c2144]
push 5
lea edx, [esp + 0x34]
push 0xe
push edx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
mov esi, dword [0x5fca78]
push eax
call esi
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
lea ecx, [esp + 0x30]
fmul qword [0x637b88]
fmul qword [0x604b10]
fstp qword [0x62d4d8]
call fcn.005df184
push 5
lea eax, [esp + 0x2c]
push 0x13
push eax
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
lea ecx, [esp + 0x28]
fmul qword [0x637b90]
fmul qword [0x604b10]
fstp qword [0x62d4e0]
call fcn.005df184
push 0x62a45c
mov ecx, 0x63c0c4
call fcn.005df27a
push 0x62a45c
mov ecx, 0x63c0c0
call fcn.005df27a
jmp case.default.0x4c1fa0
push 7
lea ecx, [esp + 0x28]
push 0xe
push ecx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
mov esi, dword [0x5fca78]
push eax
call esi
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
lea ecx, [esp + 0x24]
fdivr qword [0x602608]
fstp qword [0x62d558]
call fcn.005df184
push 7
lea edx, [esp + 0x24]
push 0x15
push edx
lea ecx, [esp + 0x1c]
call fcn.005df30a
mov eax, dword [eax]
push eax
call esi
mov dword [esp + 0x18], eax
add esp, 4
fild dword [esp + 0x14]
lea ecx, [esp + 0x20]
fdivr qword [0x602608]
fstp qword [0x62d560]
call fcn.005df184
mov ebx, dword [esp + 0x34]
mov dword [0x63c460], 1
push ebx
call dword [0x5fca98]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1070], 3
call fcn.005df184
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1070], 2
call fcn.005df184
lea ecx, [esp + 0x18]
mov byte [esp + 0x1070], 1
call fcn.005df184
lea ecx, [esp + 0x10]
mov byte [esp + 0x1070], 0
call fcn.005df184
lea ecx, [esp + 0x98]
mov dword [esp + 0x1070], 0xffffffff
call fcn.005df184
mov ecx, dword [esp + 0x1068]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1064
ret