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

Disassembly:
push 0xffffffffffffffff
push 0x556091
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x334
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x7e8]
push edi
test eax, eax
mov dword [esp + 0x20], ebx
je 0x497f73
mov eax, dword [ebx + 0x290]
push 0
push 0
push 0xb8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x497f73
lea ecx, [esp + 0x44]
call fcn.00477cf0
lea ecx, [esp + 0x44]
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x358], 0
call fcn.00496b30
mov esi, eax
test esi, esi
mov dword [esp + 0x5c], esi
je 0x497f57
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004ce440
add esp, 4
test eax, eax
jne 0x497f57
mov edx, dword [esp + 0x38]
push edx
call fcn.004e5810
add esp, 4
cmp eax, 1
jne 0x497f57
mov eax, dword [0x5ada84]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
lea edi, [ebx + 0x274]
push ecx
mov ecx, edi
mov byte [esp + 0x350], 1
call fcn.0052a34d
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.00477cf0
mov eax, dword [esp + 0x38]
mov byte [esp + 0x34c], 2
cmp eax, 0x80000201
mov dword [esp + 0x10], 0
ja 0x497e09
je 0x497ded
cmp eax, reloc.OLEAUT32.dll_SysReAllocStringLen
ja 0x497c0c
je 0x497bf2
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x497aeb
cmp eax, 0x80000003
jne 0x497f1b
lea edx, [esp + 0x70]
push edx
push ebp
call fcn.004e5f30
add esp, 8
test eax, eax
jne 0x497ae0
push 0x5a6474
call fcn.004e3020
add esp, 4
jmp 0x497f1b
lea ebp, [esp + 0x70]
mov eax, 8
jmp 0x497b1a
lea eax, [esp + 0x60]
mov ecx, 0x5b1210
push eax
push ebp
call fcn.0045d6b0
test eax, eax
jne 0x497b11
push 0x5a6454
call fcn.004e3020
add esp, 4
jmp 0x497f1b
lea ebp, [esp + 0x60]
mov eax, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x38]
cmp ecx, reloc.OLEAUT32.dll_SysReAllocStringLen
je 0x497b36
cmp ecx, 0x80000005
jne 0x497efc
mov ecx, dword [0x5b16bc]
push 0
lea eax, [esp + 0x68]
push 4
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x497f14
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
add ebx, 0x4a4
mov ecx, 0xb3
mov esi, ebx
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x5b19d8]
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov dword [esp + 0x128], edx
mov dword [esp + 0x11c], eax
mov eax, dword [0x5b16c0]
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x138], ecx
call esi
test eax, eax
je 0x497f10
mov ecx, dword [0x5b16e4]
mov edi, 1
push ecx
mov dword [0x5b16dc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [0x5b16d8]
push edx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0xffffffffffffffff
mov ecx, 0x5b16e0
call fcn.0050874d
cmp dword [0x5b16dc], edi
jne 0x497e95
mov dword [0x5b16dc], 0
jmp 0x497f10
push ebp
call fcn.00478c70
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x497b1e
jmp 0x497f1b
cmp eax, 0x80000005
je 0x497c39
cmp eax, 0x80000101
jne 0x497f1b
push ebp
call fcn.0051146a
mov byte [esp + 0x1c], al
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 1
jmp 0x497b1a
mov al, byte [ebp]
xor ebx, ebx
test al, al
mov esi, ebp
je 0x497cea
mov al, byte [esi]
cmp al, 0x20
jbe 0x497c62
cmp al, 0x2c
je 0x497c62
cmp al, 0x30
jb 0x497d44
cmp al, 0x39
ja 0x497d44
cmp al, 0x30
jb 0x497c7a
cmp al, 0x39
ja 0x497c7a
cmp ebx, 3
jge 0x497d7d
mov byte [esp + ebx + 0x3c], al
inc ebx
jmp 0x497caf
cmp al, 0x2c
jne 0x497caf
lea ecx, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push ecx
call fcn.0051146a
add esp, 4
test eax, eax
jl 0x497db5
cmp eax, 0xff
jg 0x497db5
push eax
lea ecx, [esp + 0x28]
call fcn.00477ff0
xor ebx, ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x497c48
test ebx, ebx
jle 0x497cea
lea eax, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push eax
call fcn.0051146a
add esp, 4
test eax, eax
jl 0x497db5
cmp eax, 0xff
jg 0x497db5
push eax
lea ecx, [esp + 0x28]
call fcn.00477ff0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x68]
push 4
push ecx
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x74], 1
call fcn.00478510
lea edx, [esp + 0x10]
push 4
push edx
push 4
lea ecx, [esp + 0x30]
call fcn.00478510
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x20]
add eax, 8
neg ebp
sbb ebp, ebp
mov dword [esp + 0x10], eax
and ebp, ecx
jmp 0x497bff
mov eax, dword [edi + 0x1c]
sub esi, ebp
lea edx, [esi + 1]
push edx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xb1
push eax
call esi
mov ecx, dword [edi + 0x1c]
push 0
push 0
push 0xb7
push ecx
call esi
push 0x5a6444
call fcn.004e3020
add esp, 4
jmp 0x497f1b
mov edx, dword [edi + 0x1c]
sub esi, ebx
sub esi, ebp
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xb1
push edx
call esi
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0xb7
push eax
call esi
push 0x5a31a4
call fcn.004e3020
add esp, 4
jmp 0x497f1b
mov ecx, dword [edi + 0x1c]
sub esi, ebx
sub esi, ebp
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xb1
push ecx
call esi
mov edx, dword [edi + 0x1c]
push 0
push 0
push 0xb7
push edx
call esi
push 0x5a31a4
call fcn.004e3020
add esp, 4
jmp 0x497f1b
push ebp
call fcn.0051146a
mov word [esp + 0x1c], ax
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 2
jmp 0x497b1a
cmp eax, 0x80000501
ja 0x497e6f
je 0x497e59
cmp eax, 0x80000301
je 0x497e43
cmp eax, 0x80000401
jne 0x497f1b
push ebp
call fcn.00511475
mov dword [esp + 0x1c], eax
add esp, 4
mov dword [esp + 0x1c], edx
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x497b1a
push ebp
call fcn.0051146a
add esp, 4
mov dword [esp + 0x18], eax
lea ebp, [esp + 0x18]
jmp 0x497b15
push ebp
call fcn.00511e52
fstp dword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
jmp 0x497b15
cmp eax, 0x80000601
jne 0x497f1b
push ebp
call fcn.00511e52
fstp qword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x497b1a
mov ecx, dword [0x5b16c0]
lea eax, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x80], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x497f10
mov eax, dword [0x5b16c0]
mov edx, dword [esp + 0x128]
push ebx
push eax
mov dword [esp + 0x60], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
mov eax, dword [0x5b16bc]
push 0
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x497f10
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x20]
mov eax, 4
lea ebp, [esp + 0x58]
mov dword [esp + 0x10], eax
mov ecx, dword [0x5b16bc]
push 0
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x497f14
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.00497030
mov esi, 0x55f890
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 1
mov dword [esp + 0x24], esi
call fcn.00477ef0
lea ecx, [esp + 0x14]
mov byte [esp + 0x34c], 0
call fcn.00527eff
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], esi
jmp 0x497f6a
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], 0x55f890
lea ecx, [esp + 0x44]
call fcn.00477ef0
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret