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

Disassembly:
mov eax, 0x1058
call fcn.00532230
push esi
xor esi, esi
push edi
push esi
mov edi, ecx
push 0x42000000
push 3
push esi
mov eax, dword [edi + 0x3c]
push 7
push 1
push eax
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [edi + 0x24], eax
jne 0x490fa1
pop edi
mov eax, 0xffaa
pop esi
add esp, 0x1058
ret
mov eax, dword [0x547570]
mov ecx, 0x554e48
test ecx, ecx
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], eax
je 0x490ff2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
cmp ebx, esi
je 0x490ff2
push ebx
lea ecx, [esp + 0x10]
call fcn.00405530
test eax, eax
je 0x490ff2
mov edx, dword [esp + 0xc]
inc ebx
push ebx
push 0x554e48
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0xc]
push 0xffffffffffffffff
call fcn.00405bb0
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x34]
push esi
lea eax, [esp + 0x2c]
push esi
push eax
push ecx
mov ecx, dword [edi + 0x24]
push edx
lea eax, [esp + 0x78]
push 0x1000
push eax
push ecx
call dword [0x55dfa0]
test eax, eax
je 0x4912c8
push ebp
lea ebx, [edi + 4]
lea ebp, [esp + 0x68]
mov edx, dword [ebp + 4]
mov ecx, ebx
mov dword [esp + 0x38], edx
call fcn.0052e4b0
mov eax, dword [0x547570]
mov dword [esp + 0x64], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], eax
mov ebx, dword [ebp + 8]
sar ebx, 1
cmp esi, 4
jne 0x4910b1
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x4910b1
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x49107a
mov edx, dword [0x547574]
add eax, 0xfffffff4
cmp eax, edx
jne 0x491081
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x491091
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00405870
jmp 0x4910ac
lea ecx, [esp + 0x48]
call fcn.004124c0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x547570]
lea esi, [ebp + 0xc]
mov dword [esp + 0x14], eax
test esi, esi
je 0x491113
mov ecx, esi
shr ecx, 0x10
jne 0x4910da
and esi, 0xffff
lea ecx, [esp + 0x14]
push esi
call fcn.00413ae0
mov eax, dword [0x547570]
jmp 0x491113
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x49110a
push edi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x49110a
lea ecx, [edi + edi]
mov edi, dword [esp + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x547570]
mov edi, dword [esp + 0x28]
test ebx, ebx
jge 0x49111b
xor ebx, ebx
jmp 0x491128
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
cmp ebx, ecx
jle 0x491128
mov ebx, ecx
push 0
push 0
lea edx, [esp + 0x20]
push ebx
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
call fcn.00412500
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
call fcn.00405440
lea ecx, [esp + 0x18]
call fcn.00405700
mov ecx, dword [0x547570]
mov edx, 0x547f14
test edx, edx
mov dword [esp + 0x20], ecx
jne 0x49116d
xor eax, eax
jmp 0x491178
push 0x547f14
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [edi + 0x3c]
push 0x547f14
push eax
push ecx
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x2c]
push eax
call fcn.004059f0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x38]
call fcn.00405440
lea ecx, [esp + 0x20]
call fcn.00405700
mov edx, dword [0x547570]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x3c]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004059f0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
call fcn.00405440
lea ecx, [esp + 0x1c]
call fcn.00405700
lea eax, [esp + 0x24]
lea ecx, [esp + 0x40]
push eax
call fcn.00412800
mov eax, dword [esp + 0x24]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49121f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49121f
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x34]
call fcn.00405700
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
push 0x547f14
push 0x548b38
lea ecx, [esp + 0x48]
call fcn.00413840
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x2c]
lea eax, [esp + 0x3c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
call fcn.00412800
mov esi, dword [esp + 0x38]
lea ebx, [edi + 4]
mov ecx, ebx
call fcn.0052e4c0
mov eax, dword [ebp]
test eax, eax
je 0x491289
add ebp, eax
jmp 0x49128b
xor ebp, ebp
lea ecx, [esp + 0x3c]
call fcn.004912e0
test ebp, ebp
jne 0x491025
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x34]
push ebp
lea ecx, [esp + 0x30]
push ebp
push ecx
push edx
mov edx, dword [edi + 0x24]
push eax
lea ecx, [esp + 0x7c]
push 0x1000
push ecx
push edx
call dword [0x55dfa0]
test eax, eax
jne 0x491021
pop ebp
lea ecx, [esp + 0xc]
call fcn.00405700
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x1058
ret