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

Disassembly:
mov eax, 0x1058
call fcn.00531740
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 0x490051
pop edi
mov eax, 0xffaa
pop esi
add esp, 0x1058
ret
mov eax, dword [0x546560]
mov ecx, 0x553dd8
test ecx, ecx
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], eax
je 0x4900a2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
cmp ebx, esi
je 0x4900a2
push ebx
lea ecx, [esp + 0x10]
call fcn.00405530
test eax, eax
je 0x4900a2
mov edx, dword [esp + 0xc]
inc ebx
push ebx
push 0x553dd8
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 [0x55ceec]
test eax, eax
je 0x490378
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.0052d9c0
mov eax, dword [0x546560]
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 0x490161
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x490161
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x49012a
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x490131
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x490141
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00405870
jmp 0x49015c
lea ecx, [esp + 0x48]
call fcn.00412670
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 [0x546560]
lea esi, [ebp + 0xc]
mov dword [esp + 0x14], eax
test esi, esi
je 0x4901c3
mov ecx, esi
shr ecx, 0x10
jne 0x49018a
and esi, 0xffff
lea ecx, [esp + 0x14]
push esi
call fcn.00413c90
mov eax, dword [0x546560]
jmp 0x4901c3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4901ba
push edi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4901ba
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 [0x546560]
mov edi, dword [esp + 0x28]
test ebx, ebx
jge 0x4901cb
xor ebx, ebx
jmp 0x4901d8
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
cmp ebx, ecx
jle 0x4901d8
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.004126b0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
call fcn.00405440
lea ecx, [esp + 0x18]
call fcn.00405700
mov ecx, dword [0x546560]
mov edx, 0x546f04
test edx, edx
mov dword [esp + 0x20], ecx
jne 0x49021d
xor eax, eax
jmp 0x490228
push 0x546f04
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [edi + 0x3c]
push 0x546f04
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 [0x546560]
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.004129b0
mov eax, dword [esp + 0x24]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4902cf
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4902cf
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 0x546f04
push 0x547b28
lea ecx, [esp + 0x48]
call fcn.004139f0
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.004129b0
mov esi, dword [esp + 0x38]
lea ebx, [edi + 4]
mov ecx, ebx
call fcn.0052d9d0
mov eax, dword [ebp]
test eax, eax
je 0x490339
add ebp, eax
jmp 0x49033b
xor ebp, ebp
lea ecx, [esp + 0x3c]
call fcn.00490390
test ebp, ebp
jne 0x4900d5
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 [0x55ceec]
test eax, eax
jne 0x4900d1
pop ebp
lea ecx, [esp + 0xc]
call fcn.00405700
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x1058
ret