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

Disassembly:
push 0xffffffffffffffff
push 0x456f86
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x46d358]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46d358]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc0]
xor ebx, ebx
mov dword [esp + 0x38], eax
mov byte [esp + 0x17], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x20]
push ecx
push 0x45b5ac
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 1
call fcn.0040eba0
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], ebx
jmp 0x40f3a0
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x40f8ea
mov ecx, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x51eb851f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40f8ea
mov edx, dword [esp + 0x30]
push 0xffffffffffffffff
lea eax, [edx + esi + 0xa8]
push ebx
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
call fcn.004035f0
mov edx, dword [esp + 0x54]
cmp edx, 8
mov ecx, dword [esp + 0x40]
mov byte [esp + 0xb8], 2
jb 0x40f576
cmp ecx, ebx
mov esi, ecx
mov dword [esp + 0x1c], esi
je 0x40f43c
cmp edx, 8
mov eax, ecx
jae 0x40f422
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x40f43c
cmp edx, 8
mov eax, ecx
jae 0x40f431
lea eax, [esp + 0x40]
mov edi, dword [esp + 0x50]
lea eax, [eax + edi*2]
cmp esi, eax
jbe 0x40f44d
call fcn.004285ba
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
cmp edx, 8
mov eax, ecx
jae 0x40f458
lea eax, [esp + 0x40]
lea ebp, [eax + edi*2]
cmp ebp, ebx
je 0x40f480
cmp edx, 8
mov eax, ecx
jae 0x40f46a
lea eax, [esp + 0x40]
cmp eax, ebp
ja 0x40f480
cmp edx, 8
mov eax, ecx
jae 0x40f479
lea eax, [esp + 0x40]
lea eax, [eax + edi*2]
cmp ebp, eax
jbe 0x40f491
call fcn.004285ba
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
cmp edx, 8
jb 0x40f583
cmp ecx, ebx
mov esi, ecx
je 0x40f4c1
cmp edx, 8
mov eax, ecx
jae 0x40f4ab
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x40f4c1
cmp edx, 8
mov eax, ecx
jae 0x40f4ba
lea eax, [esp + 0x40]
lea eax, [eax + edi*2]
cmp esi, eax
jbe 0x40f4ce
call fcn.004285ba
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov eax, ebp
sub eax, esi
lea edi, [esp + 0x3c]
sar eax, 1
cmp edi, 0xfffffffe
je 0x40f50e
cmp edx, 8
jae 0x40f4e6
lea ecx, [esp + 0x40]
mov edi, dword [esp + 0x1c]
lea eax, [edi + eax*2]
mov edi, dword [esp + 0x50]
lea ecx, [ecx + edi*2]
cmp eax, ecx
ja 0x40f509
cmp edx, 8
mov ecx, dword [esp + 0x40]
jae 0x40f505
lea ecx, [esp + 0x40]
cmp eax, ecx
jae 0x40f50e
call fcn.004285ba
cmp esi, ebp
je 0x40f537
mov edi, dword [esp + 0x1c]
sub edi, esi
jmp 0x40f520
movzx edx, word [esi]
push edx
call fcn.0042a1a3
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebp
jne 0x40f520
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x40f55c
mov ecx, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x51eb851f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x40f565
call fcn.004285ba
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
cmp dword [edi + esi + 0x18], 8
jb 0x40f58c
mov esi, dword [edi + esi + 4]
jmp 0x40f590
lea esi, [esp + 0x40]
mov dword [esp + 0x1c], esi
jmp 0x40f417
lea esi, [esp + 0x40]
jmp 0x40f4a0
lea esi, [edi + esi + 4]
push esi
mov esi, dword [esp + 0x1c]
add esi, 1
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x18
mov ebp, 7
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str._d.1_SymblicName:_t__s__r_n
mov word [ecx + 4], bx
call fcn.004037c0
call fcn.0040d4f0
mov ecx, dword [esp + 0x48]
add esp, 0x24
cmp ecx, ebx
je 0x40f5ea
mov edx, dword [esp + 0x28]
sub edx, ecx
mov eax, 0x51eb851f
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x40f5f3
call fcn.004285ba
mov ecx, dword [esp + 0x24]
cmp dword [edi + ecx + 0xc0], 8
jb 0x40f606
mov eax, dword [edi + ecx + 0xac]
jmp 0x40f60d
lea eax, [edi + ecx + 0xac]
push eax
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x17
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str._d.2_InstanceID:_t__s__r_n
mov word [ecx + 4], bx
call fcn.004037c0
call fcn.0040d4f0
add esp, 0x24
push 5
push str._ZTE
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
call fcn.004037c0
push 9
push str._PROLINK
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc0], 3
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
call fcn.004037c0
push 6
push str._EVDO
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], 4
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
call fcn.004037c0
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0xbc], 5
call fcn.0040dde0
add esp, 4
test al, al
je 0x40f761
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x40f6e7
lea eax, [esp + 0x94]
mov ecx, dword [esp + 0xa4]
push ecx
push ebx
push eax
lea ecx, [esp + 0x48]
call fcn.0040aac0
cmp eax, 0xffffffff
jne 0x40f80c
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x40f715
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
push edx
push ebx
push eax
lea ecx, [esp + 0x48]
call fcn.0040aac0
cmp dword [esp + 0x70], 8
mov edi, eax
mov eax, dword [esp + 0x5c]
jae 0x40f739
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
push ecx
push ebx
push eax
lea ecx, [esp + 0x48]
call fcn.0040aac0
xor edx, edx
cmp eax, 0xffffffff
setne dl
xor eax, eax
cmp edi, 0xffffffff
setne al
or edx, eax
jne 0x40f80c
mov edi, 8
cmp dword [esp + 0x70], edi
jb 0x40f779
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0041d291
add esp, 4
cmp dword [esp + 0x8c], edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x40f79c
mov edx, dword [esp + 0x78]
push edx
call fcn.0041d291
add esp, 4
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
jb 0x40f7c8
mov eax, dword [esp + 0x94]
push eax
call fcn.0041d291
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov byte [esp + 0xb8], 1
jb 0x40f7f9
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0041d291
add esp, 4
add dword [esp + 0x30], 0xc8
mov dword [esp + 0x18], esi
mov edi, esi
jmp 0x40f3a0
mov esi, dword [esp + 0x24]
cmp esi, ebx
mov edi, dword [esp + 0x18]
mov byte [esp + 0x17], 1
je 0x40f838
mov ecx, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x51eb851f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40f841
call fcn.004285ba
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
imul edi, edi, 0xc8
push 0xffffffffffffffff
push ebx
add edi, esi
push edi
call fcn.004035f0
mov esi, 8
cmp dword [esp + 0x70], esi
jb 0x40f86e
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041d291
add esp, 4
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x40f891
mov eax, dword [esp + 0x78]
push eax
call fcn.0041d291
add esp, 4
cmp dword [esp + 0xa8], esi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
jb 0x40f8bd
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0041d291
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
jb 0x40f8e6
mov edx, dword [esp + 0x40]
push edx
call fcn.0041d291
add esp, 4
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40f8fd
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x40f92e
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x40f925
lea esp, [esp]
mov ecx, esi
call fcn.0040afc0
add esi, 0xc8
cmp esi, edi
jne 0x40f910
mov esi, dword [esp + 0x24]
push esi
call fcn.0041d291
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00428437
add esp, 0xa8
ret