Function at 0x104cf3a
Capabilities:
Link many functions at runtime

Disassembly:
push 0x10
mov eax, 0x1060f27
call fcn.0104f320
mov esi, ecx
push 0x1017630
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.010314ac
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
push 0x1002678
push 0x101760c
push 0x4000000
call fcn.0104a7da
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 0x104d444
cmp edi, 0xffffffff
je 0x104d444
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.010443ca
mov ebx, eax
test ebx, ebx
jge 0x104cfd3
push 0x1017598
push 0x1017578
push ebx
call fcn.0104a504
add esp, 0xc
jmp 0x104d481
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x50], eax
test eax, eax
je 0x104d409
cmp eax, 0xffffffff
je 0x104d409
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1017568
push eax
call edi
mov dword [esi], eax
test eax, eax
jne 0x104d039
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d01a
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d025
mov ebx, 0x80004005
push 0x1017528
push 0x1017508
call esi
push eax
call fcn.0104a5f6
jmp 0x104cfcb
push 0x10174f8
push dword [esi + 0x50]
call edi
mov dword [esi + 4], eax
test eax, eax
jne 0x104d077
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d060
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d06b
mov ebx, 0x80004005
push 0x10174b8
push 0x101749c
jmp 0x104d02f
push 0x1017488
push dword [esi + 0x50]
call edi
mov dword [esi + 8], eax
test eax, eax
jne 0x104d0b8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d09e
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d0a9
mov ebx, 0x80004005
push 0x1017440
push 0x1017420
jmp 0x104d02f
push 0x1017410
push dword [esi + 0x50]
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x104d0f9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d0df
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d0ea
mov ebx, 0x80004005
push 0x10173c8
push 0x10173ac
jmp 0x104d02f
push 0x1017398
push dword [esi + 0x50]
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x104d13a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d120
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d12b
mov ebx, 0x80004005
push 0x1017348
push 0x1017328
jmp 0x104d02f
push 0x1017314
push dword [esi + 0x50]
call edi
mov dword [esi + 0x14], eax
test eax, eax
jne 0x104d17b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d161
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d16c
mov ebx, 0x80004005
push 0x10172c8
push 0x10172a8
jmp 0x104d02f
push 0x1017294
push dword [esi + 0x50]
call edi
mov dword [esi + 0x18], eax
test eax, eax
jne 0x104d1bc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d1a2
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d1ad
mov ebx, 0x80004005
push 0x1017248
push 0x1017228
jmp 0x104d02f
push 0x1017214
push dword [esi + 0x50]
call edi
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x104d1fd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d1e3
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d1ee
mov ebx, 0x80004005
push 0x10171c8
push 0x10171a8
jmp 0x104d02f
push 0x1017198
push dword [esi + 0x50]
call edi
mov dword [esi + 0x38], eax
test eax, eax
jne 0x104d23e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d224
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d22f
mov ebx, 0x80004005
push 0x1017150
push 0x1017130
jmp 0x104d02f
push 0x101711c
push dword [esi + 0x50]
call edi
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x104d27f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d265
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d270
mov ebx, 0x80004005
push 0x10170d0
push 0x10170b0
jmp 0x104d02f
push 0x10170a0
push dword [esi + 0x50]
call edi
mov dword [esi + 0x40], eax
test eax, eax
jne 0x104d2c0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d2a6
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d2b1
mov ebx, 0x80004005
push 0x1017058
push 0x101703c
jmp 0x104d02f
push 0x1017028
push dword [esi + 0x50]
call edi
mov dword [esi + 0x44], eax
test eax, eax
jne 0x104d301
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d2e7
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d2f2
mov ebx, 0x80004005
push 0x1016fe0
push 0x1016fc0
jmp 0x104d02f
push 0x1016fb0
push dword [esi + 0x50]
call edi
mov dword [esi + 0x20], eax
test eax, eax
jne 0x104d342
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d328
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d333
mov ebx, 0x80004005
push 0x1016f68
push 0x1016f48
jmp 0x104d02f
push 0x1016f38
push dword [esi + 0x50]
call edi
mov dword [esi + 0x24], eax
test eax, eax
jne 0x104d383
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d369
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d374
mov ebx, 0x80004005
push 0x1016ef0
push 0x1016ed0
jmp 0x104d02f
push 0x1016eb8
push dword [esi + 0x50]
call edi
mov dword [esi + 0x28], eax
test eax, eax
jne 0x104d3c4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d3aa
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d3b5
mov ebx, 0x80004005
push 0x1016e60
push 0x1016e44
jmp 0x104d02f
push 0x1016e30
push dword [esi + 0x50]
call edi
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x104d481
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d3ef
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d3fa
mov ebx, 0x80004005
push 0x1016de8
push 0x1016dcc
jmp 0x104d02f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x104d41f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d42a
mov ebx, 0x80004005
push dword [ebp - 0x14]
push 0x1016d98
push 0x1016d7c
call esi
push eax
call fcn.0104a5f6
add esp, 0x10
jmp 0x104d481
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x104d45a
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x104d465
mov ebx, 0x80004005
push dword [ebp - 0x14]
push 0x1001898
push 0x1016d60
call esi
push eax
call fcn.0104a5f6
add esp, 0x10
test edi, edi
je 0x104d489
lea ecx, [ebp - 0x18]
call fcn.010303b2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.010303ce
jmp 0x104d4c2
mov eax, ebx
call fcn.0104f3d4
ret