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

Disassembly:
push 0xffffffffffffffff
push 0x5561b1
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 0x498063
mov eax, dword [ebx + 0x290]
push 0
push 0
push 0xb8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x498063
lea ecx, [esp + 0x44]
call fcn.00477df0
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.00496c20
mov esi, eax
test esi, esi
mov dword [esp + 0x5c], esi
je 0x498047
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004ce550
add esp, 4
test eax, eax
jne 0x498047
mov edx, dword [esp + 0x38]
push edx
call fcn.004e5910
add esp, 4
cmp eax, 1
jne 0x498047
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.0052a46d
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.00477df0
mov eax, dword [esp + 0x38]
mov byte [esp + 0x34c], 2
cmp eax, 0x80000201
mov dword [esp + 0x10], 0
ja 0x497ef9
je 0x497edd
cmp eax, reloc.OLEAUT32.dll_SysReAllocStringLen
ja 0x497cfc
je 0x497ce2
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x497bdb
cmp eax, 0x80000003
jne 0x49800b
lea edx, [esp + 0x70]
push edx
push ebp
call fcn.004e6030
add esp, 8
test eax, eax
jne 0x497bd0
push 0x5a6474
call fcn.004e3120
add esp, 4
jmp 0x49800b
lea ebp, [esp + 0x70]
mov eax, 8
jmp 0x497c0a
lea eax, [esp + 0x60]
mov ecx, 0x5b1210
push eax
push ebp
call fcn.0045d7b0
test eax, eax
jne 0x497c01
push 0x5a6454
call fcn.004e3120
add esp, 4
jmp 0x49800b
lea ebp, [esp + 0x60]
mov eax, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x38]
cmp ecx, reloc.OLEAUT32.dll_SysReAllocStringLen
je 0x497c26
cmp ecx, 0x80000005
jne 0x497fec
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 0x498004
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 0x498000
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.0050885d
cmp dword [0x5b16dc], edi
jne 0x497f85
mov dword [0x5b16dc], 0
jmp 0x498000
push ebp
call fcn.00478d70
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x497c0e
jmp 0x49800b
cmp eax, 0x80000005
je 0x497d29
cmp eax, 0x80000101
jne 0x49800b
push ebp
call fcn.0051157a
mov byte [esp + 0x1c], al
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 1
jmp 0x497c0a
mov al, byte [ebp]
xor ebx, ebx
test al, al
mov esi, ebp
je 0x497dda
mov al, byte [esi]
cmp al, 0x20
jbe 0x497d52
cmp al, 0x2c
je 0x497d52
cmp al, 0x30
jb 0x497e34
cmp al, 0x39
ja 0x497e34
cmp al, 0x30
jb 0x497d6a
cmp al, 0x39
ja 0x497d6a
cmp ebx, 3
jge 0x497e6d
mov byte [esp + ebx + 0x3c], al
inc ebx
jmp 0x497d9f
cmp al, 0x2c
jne 0x497d9f
lea ecx, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push ecx
call fcn.0051157a
add esp, 4
test eax, eax
jl 0x497ea5
cmp eax, 0xff
jg 0x497ea5
push eax
lea ecx, [esp + 0x28]
call fcn.00478130
xor ebx, ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x497d38
test ebx, ebx
jle 0x497dda
lea eax, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push eax
call fcn.0051157a
add esp, 4
test eax, eax
jl 0x497ea5
cmp eax, 0xff
jg 0x497ea5
push eax
lea ecx, [esp + 0x28]
call fcn.00478130
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.00478610
lea edx, [esp + 0x10]
push 4
push edx
push 4
lea ecx, [esp + 0x30]
call fcn.00478610
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 0x497cef
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.004e3120
add esp, 4
jmp 0x49800b
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 0x5a31a8
call fcn.004e3120
add esp, 4
jmp 0x49800b
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 0x5a31a8
call fcn.004e3120
add esp, 4
jmp 0x49800b
push ebp
call fcn.0051157a
mov word [esp + 0x1c], ax
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 2
jmp 0x497c0a
cmp eax, 0x80000501
ja 0x497f5f
je 0x497f49
cmp eax, 0x80000301
je 0x497f33
cmp eax, 0x80000401
jne 0x49800b
push ebp
call fcn.00511585
mov dword [esp + 0x1c], eax
add esp, 4
mov dword [esp + 0x1c], edx
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x497c0a
push ebp
call fcn.0051157a
add esp, 4
mov dword [esp + 0x18], eax
lea ebp, [esp + 0x18]
jmp 0x497c05
push ebp
call fcn.00511f72
fstp dword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
jmp 0x497c05
cmp eax, 0x80000601
jne 0x49800b
push ebp
call fcn.00511f72
fstp qword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x497c0a
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 0x498000
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 0x498000
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 0x498004
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.00497120
mov esi, 0x55f890
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 1
mov dword [esp + 0x24], esi
call fcn.00477ff0
lea ecx, [esp + 0x14]
mov byte [esp + 0x34c], 0
call fcn.0052801f
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], esi
jmp 0x49805a
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], 0x55f890
lea ecx, [esp + 0x44]
call fcn.00477ff0
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret