Function at 0x104b8cb
Capabilities:
Link many functions at runtime

Disassembly:
push 0x10
mov eax, 0x105f569
call fcn.0104dc9c
mov esi, ecx
push 0x1016de0
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.01030bdc
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
push 0x1002428
push 0x1016dbc
push 0x4000000
call fcn.01048e9b
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x104bdd5
cmp edi, 0xffffffff
je 0x104bdd5
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.01042e59
mov ebx, eax
test ebx, ebx
jge 0x104b964
push 0x1016d48
push 0x1016d28
push ebx
call fcn.01048c52
add esp, 0xc
jmp 0x104be12
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x50], eax
test eax, eax
je 0x104bd9a
cmp eax, 0xffffffff
je 0x104bd9a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1016d18
push eax
call edi
mov dword [esi], eax
test eax, eax
jne 0x104b9ca
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104b9ab
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104b9b6
mov ebx, 0x80004005
push 0x1016cd8
push 0x1016cb8
call esi
push eax
call fcn.01048d15
jmp 0x104b95c
push 0x1016ca8
push dword [esi + 0x50]
call edi
mov dword [esi + 4], eax
test eax, eax
jne 0x104ba08
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104b9f1
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104b9fc
mov ebx, 0x80004005
push 0x1016c68
push 0x1016c4c
jmp 0x104b9c0
push 0x1016c38
push dword [esi + 0x50]
call edi
mov dword [esi + 8], eax
test eax, eax
jne 0x104ba49
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104ba2f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104ba3a
mov ebx, 0x80004005
push 0x1016bf0
push 0x1016bd0
jmp 0x104b9c0
push 0x1016bc0
push dword [esi + 0x50]
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x104ba8a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104ba70
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104ba7b
mov ebx, 0x80004005
push 0x1016b78
push 0x1016b5c
jmp 0x104b9c0
push 0x1016b48
push dword [esi + 0x50]
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x104bacb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bab1
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104babc
mov ebx, 0x80004005
push 0x1016af8
push 0x1016ad8
jmp 0x104b9c0
push 0x1016ac4
push dword [esi + 0x50]
call edi
mov dword [esi + 0x14], eax
test eax, eax
jne 0x104bb0c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104baf2
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bafd
mov ebx, 0x80004005
push 0x1016a78
push 0x1016a58
jmp 0x104b9c0
push 0x1016a44
push dword [esi + 0x50]
call edi
mov dword [esi + 0x18], eax
test eax, eax
jne 0x104bb4d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bb33
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bb3e
mov ebx, 0x80004005
push 0x10169f8
push 0x10169d8
jmp 0x104b9c0
push 0x10169c4
push dword [esi + 0x50]
call edi
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x104bb8e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bb74
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bb7f
mov ebx, 0x80004005
push 0x1016978
push 0x1016958
jmp 0x104b9c0
push 0x1016948
push dword [esi + 0x50]
call edi
mov dword [esi + 0x38], eax
test eax, eax
jne 0x104bbcf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bbb5
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bbc0
mov ebx, 0x80004005
push 0x1016900
push 0x10168e0
jmp 0x104b9c0
push 0x10168cc
push dword [esi + 0x50]
call edi
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x104bc10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bbf6
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bc01
mov ebx, 0x80004005
push 0x1016880
push 0x1016860
jmp 0x104b9c0
push 0x1016850
push dword [esi + 0x50]
call edi
mov dword [esi + 0x40], eax
test eax, eax
jne 0x104bc51
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bc37
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bc42
mov ebx, 0x80004005
push 0x1016808
push 0x10167ec
jmp 0x104b9c0
push 0x10167d8
push dword [esi + 0x50]
call edi
mov dword [esi + 0x44], eax
test eax, eax
jne 0x104bc92
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bc78
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bc83
mov ebx, 0x80004005
push 0x1016790
push 0x1016770
jmp 0x104b9c0
push 0x1016760
push dword [esi + 0x50]
call edi
mov dword [esi + 0x20], eax
test eax, eax
jne 0x104bcd3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bcb9
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bcc4
mov ebx, 0x80004005
push 0x1016718
push 0x10166f8
jmp 0x104b9c0
push 0x10166e8
push dword [esi + 0x50]
call edi
mov dword [esi + 0x24], eax
test eax, eax
jne 0x104bd14
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bcfa
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bd05
mov ebx, 0x80004005
push 0x10166a0
push 0x1016680
jmp 0x104b9c0
push 0x1016668
push dword [esi + 0x50]
call edi
mov dword [esi + 0x28], eax
test eax, eax
jne 0x104bd55
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bd3b
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bd46
mov ebx, 0x80004005
push 0x1016610
push 0x10165f4
jmp 0x104b9c0
push 0x10165e0
push dword [esi + 0x50]
call edi
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x104be12
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bd80
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bd8b
mov ebx, 0x80004005
push 0x1016598
push 0x101657c
jmp 0x104b9c0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104bdb0
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bdbb
mov ebx, 0x80004005
push dword [ebp - 0x14]
push 0x1016548
push 0x101652c
call esi
push eax
call fcn.01048d15
add esp, 0x10
jmp 0x104be12
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x104bdeb
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104bdf6
mov ebx, 0x80004005
push dword [ebp - 0x14]
push 0x1001888
push 0x1016510
call esi
push eax
call fcn.01048d15
add esp, 0x10
test edi, edi
je 0x104be1a
lea ecx, [ebp - 0x18]
call fcn.0102fb22
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0102fb3e
jmp 0x104be53
mov eax, ebx
call fcn.0104dd50
ret