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

Disassembly:
push 0xffffffffffffffff
push 0x10050e74
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x354], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b2c8]
xor eax, esp
push eax
lea eax, [esp + 0x36c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x394]
mov ecx, dword [esp + 0x398]
mov edx, dword [esp + 0x39c]
mov esi, dword [esp + 0x37c]
mov ebp, dword [esp + 0x380]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3a0]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3a4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3a8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3ac]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x3b0]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], ecx
jne 0x10022981
lea eax, [ebx + 0x57]
jmp 0x10022fb6
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x120], 7
mov dword [esp + 0x11c], ebx
mov word [esp + 0x10c], bx
lea ecx, [esp + 0x238]
mov dword [esp + 0x374], ebx
call fcn.10016350
lea ecx, [esp + 0x128]
mov byte [esp + 0x374], 1
call fcn.10019500
lea ecx, [esp + 0x270]
mov byte [esp + 0x374], 2
call fcn.10016080
mov eax, 7
mov dword [esp + 0x40], ebx
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
lea edx, [esp + 0x40]
push edx
push 2
push ebx
push esi
mov byte [esp + 0x384], 5
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], esi
je 0x10022eee
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0x398]
lea edx, [esp + 0x240]
push edx
mov edx, dword [esp + 0x398]
lea eax, [esp + 0x104]
push eax
mov eax, dword [esp + 0x398]
push ecx
push edx
push eax
push ebp
push esi
mov ecx, edi
call fcn.1001d080
cmp eax, ebx
mov dword [esp + 0x34], eax
jne 0x10022ee5
mov ebp, dword [esp + 0x20]
mov ecx, ebp
call fcn.10004c20
mov ecx, dword [esp + 0x1c]
call fcn.10004c20
mov ecx, dword [esp + 0x14]
call fcn.1001d860
mov ecx, dword [esp + 0x18]
call fcn.10004c20
mov ecx, dword [esp + 0x3c]
call fcn.1001fd50
mov ecx, dword [esp + 0x28]
push ebx
push 0x100533f4
call fcn.100017e0
mov ecx, dword [esp + 0x30]
push ebx
push 0x100533f4
call fcn.100017e0
mov ecx, dword [esp + 0x38]
push ebx
push 0x100533f4
call fcn.100017e0
mov esi, dword [esp + 0x12c]
mov eax, dword [esp + 0x130]
cmp esi, eax
jbe 0x10022b0d
call fcn.100370ab
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0x128]
mov dword [esp + 0x20], ecx
jmp 0x10022b20
cmp dword [esp + 0x12c], eax
mov edi, eax
jbe 0x10022b30
call fcn.100370ab
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10022b43
lea ecx, [esp + 0x128]
cmp eax, ecx
je 0x10022b48
call fcn.100370ab
cmp esi, edi
je 0x10022de7
cmp dword [esp + 0x20], ebx
jne 0x10022b5b
call fcn.100370ab
mov edx, dword [esp + 0x20]
cmp esi, dword [edx + 8]
jb 0x10022b69
call fcn.100370ab
push ebx
push 0x100533f4
lea ecx, [esp + 0xe4]
call fcn.100017e0
push ebx
push 0x100533f4
lea ecx, [esp + 0xc8]
call fcn.100017e0
cmp dword [esi + 0x38], ebx
jne 0x10022c24
lea edi, [esi + 8]
push edi
mov ecx, ebp
call fcn.100050e0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0xe8]
call fcn.100016f0
mov ecx, dword [esp + 0x1c]
push edi
call fcn.100050e0
mov ecx, dword [esp + 0x14]
lea eax, [esi + 4]
push eax
call fcn.10012310
cmp dword [esi + 0x70], ebx
je 0x10022d40
push 0x10053f94
lea ecx, [esi + 0x5c]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.1001f0c0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x380], 6
call fcn.100016f0
cmp dword [esp + 0x5c], 8
mov byte [esp + 0x374], 5
jb 0x10022d40
mov eax, dword [esp + 0x48]
push eax
call fcn.10036ea6
add esp, 4
jmp 0x10022d40
test byte [esp + 0x384], 2
je 0x10022cbc
lea edi, [esi + 0x24]
push edi
mov ecx, ebp
call fcn.100050e0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0xe8]
call fcn.100016f0
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 8]
push edx
call fcn.100050e0
mov ecx, dword [esp + 0x14]
lea eax, [esi + 4]
push eax
call fcn.10012310
cmp dword [esi + 0x70], ebx
je 0x10022cab
push 0x10053f94
lea ecx, [esi + 0x5c]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.1001f0c0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x380], 7
call fcn.100016f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x374], 5
call fcn.10001400
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc0]
push eax
call fcn.100050e0
test byte [esp + 0x384], 1
je 0x10022d51
lea edi, [esi + 0x24]
push edi
mov ecx, ebp
call fcn.100050e0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0xe8]
call fcn.100016f0
mov ecx, dword [esp + 0x1c]
push edi
call fcn.100050e0
lea ecx, [esi + 4]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10012310
cmp dword [esi + 0x70], ebx
je 0x10022d40
push 0x10053f94
lea edx, [esi + 0x5c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.1001f0c0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x380], 8
call fcn.100016f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x374], 5
call fcn.10001400
lea ecx, [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.100050e0
cmp dword [esi + 0x8c], ebx
je 0x10022dc7
cmp dword [esp + 0xf0], ebx
je 0x10022dc7
lea edx, [esi + 0x78]
push edx
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x90]
call fcn.1001d8d0
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x378], 9
call fcn.1001da00
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0x37c], 0xa
call fcn.1001fba0
lea ecx, [esp + 0x44]
call fcn.1001d380
lea ecx, [esp + 0x88]
mov byte [esp + 0x374], 5
call fcn.1001d380
mov eax, dword [esp + 0x20]
cmp esi, dword [eax + 8]
jb 0x10022dd5
call fcn.100370ab
mov eax, dword [esp + 0x130]
add esi, 0x94
jmp 0x10022b20
cmp dword [esp + 0x308], ebx
je 0x10022e8a
lea ecx, [esp + 0x2f4]
push ecx
mov ecx, ebp
call fcn.100050e0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2f4]
push edx
call fcn.100050e0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0xffffffff
call fcn.10012310
push ebx
mov esi, 7
push 0x100533f4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
call fcn.100017e0
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x378], 0xb
call fcn.100050e0
cmp dword [esp + 0x5c], 8
mov byte [esp + 0x374], 5
jb 0x10022e7d
mov edx, dword [esp + 0x48]
push edx
call fcn.10036ea6
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
cmp dword [esp + 0x1d8], ebx
je 0x10022ea7
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1cc]
push eax
call fcn.100016f0
cmp dword [esp + 0x168], ebx
je 0x10022ec4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x15c]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.100016f0
cmp dword [esp + 0x14c], ebx
je 0x10022ee1
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x140]
push edx
call fcn.100016f0
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x10022ef8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x34], eax
mov edi, 8
cmp dword [esp + 0xd8], edi
jb 0x10022f16
mov eax, dword [esp + 0xc4]
push eax
call fcn.10036ea6
add esp, 4
cmp dword [esp + 0xf4], edi
mov esi, 7
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
jb 0x10022f4a
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.10036ea6
add esp, 4
lea ecx, [esp + 0x270]
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], bx
mov byte [esp + 0x374], 2
call fcn.10016190
lea ecx, [esp + 0x128]
mov byte [esp + 0x374], 1
call fcn.100195d0
lea ecx, [esp + 0x238]
mov byte [esp + 0x374], bl
call fcn.100163d0
lea ecx, [esp + 0xf8]
mov dword [esp + 0x374], 0xffffffff
call fcn.10019430
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x36c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x354]
xor ecx, esp
call fcn.1003754f
add esp, 0x364
ret 0x38