Function at 0x407640
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4398b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x44d660]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push 0x43d208
lea ecx, [esp + 0x18]
call fcn.00404540
cmp dword [esi + 0x104], 0x10
mov dword [esp + 0x20], 0
jb 0x40768f
mov edi, dword [esi + 0xf0]
jmp 0x407695
lea edi, [esi + 0xf0]
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4076bf
push 0x104
lea ecx, [esp + 0x18]
call fcn.00402c40
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0x104
push edx
push 0x43d208
push str.Driver
push str.Common
call ebp
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x4076e9
xor eax, eax
jmp 0x407701
mov eax, ecx
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4076f0
sub eax, edi
js 0x40797f
cmp eax, dword [ecx - 8]
jg 0x40797f
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov byte [eax + ecx], 0
mov edx, dword [esp + 0x14]
push str.EVDO
push edx
call fcn.00425888
add esp, 8
test eax, eax
sete al
test al, al
je 0x407944
push 0x43d208
lea ecx, [esp + 0x14]
call fcn.00404540
cmp dword [esi + 0x104], 0x10
mov byte [esp + 0x20], 1
jb 0x407758
mov edi, dword [esi + 0xf0]
jmp 0x40775e
lea edi, [esi + 0xf0]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x407788
push 0x104
lea ecx, [esp + 0x14]
call fcn.00402c40
mov edx, dword [esp + 0x10]
push edi
push 0x104
push edx
push 0x43d208
push 0x43dbdc
push str.Common
call ebp
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4077ac
xor eax, eax
jmp 0x4077c2
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4077b1
sub eax, edi
js 0x40797f
cmp eax, dword [ecx - 8]
jg 0x40797f
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x10]
mov byte [eax + ecx], 0
mov edx, dword [esp + 0x10]
push edx
push str.USBVID_1C9EPID__sMI_00
push 0x104
push 0x44eb38
call fcn.00425731
mov eax, dword [esp + 0x20]
push eax
push str.USBVID_1C9EPID__sMI_03
push 0x104
push 0x44ec40
mov dword [esi + 0xa4], 0x44eb38
call fcn.00425731
mov ecx, dword [esp + 0x30]
push ecx
push str.USBVID_1C9EPID__sMI_02
push 0x104
push 0x44ed48
mov dword [esi + 0xa8], 0x44ec40
call fcn.00425731
mov edx, dword [esp + 0x40]
push edx
push str.USBVID_1C9EPID__sMI_01
push 0x104
push 0x44ee50
mov dword [esi + 0xac], 0x44ed48
call fcn.00425731
mov eax, dword [esp + 0x50]
add esp, 0x40
push eax
push str.USBVID_1C9EPID__sMI_04
push 0x104
push 0x44ef58
mov dword [esi + 0xb0], 0x44ee50
call fcn.00425731
mov ecx, dword [esp + 0x20]
push ecx
push str.USBVid_1c9ePid__s
push 0x104
push 0x44f060
mov dword [esi + 0xb4], 0x44ef58
call fcn.00425731
mov edx, dword [esp + 0x30]
push edx
push str.USB_vid_1C9EPid__sRev_0000MI_03
push 0x104
push 0x44f168
mov dword [esi + 0xb8], 0x44f060
call fcn.00425731
mov eax, dword [esp + 0x40]
push eax
push str.USBVid_1C9EPid__sRev_0000MI_02
push 0x104
push 0x44f270
mov dword [esi + 0xbc], 0x44f168
call fcn.00425731
mov ecx, dword [esp + 0x50]
mov eax, ecx
add esp, 0x40
mov dword [esi + 0xc0], 0x44f270
mov dword [esi + 0xc8], 4
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407907
sub eax, edi
push eax
push ecx
lea ecx, [esi + 0xcc]
call fcn.00403e60
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407944
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40796c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x80070057
call fcn.00401160
int3