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

Disassembly:
push 0xffffffffffffffff
push 0x53f831
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 0x490ce3
mov eax, dword [ebx + 0x290]
push 0
push 0
push 0xb8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x490ce3
lea ecx, [esp + 0x44]
call fcn.00470b30
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.0048f8a0
mov esi, eax
test esi, esi
mov dword [esp + 0x5c], esi
je 0x490cc7
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004c72a0
add esp, 4
test eax, eax
jne 0x490cc7
mov edx, dword [esp + 0x38]
push edx
call fcn.004dc2d0
add esp, 4
cmp eax, 1
jne 0x490cc7
mov eax, dword [0x58f614]
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.005166b5
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.00470b30
mov eax, dword [esp + 0x38]
mov byte [esp + 0x34c], 2
cmp eax, 0x80000201
mov dword [esp + 0x10], 0
ja 0x490b79
je 0x490b5d
cmp eax, 0x80000004
ja 0x49097c
je 0x490962
cmp eax, 0x80000002
je 0x49085b
cmp eax, 0x80000003
jne 0x490c8b
lea edx, [esp + 0x70]
push edx
push ebp
call fcn.004dc9f0
add esp, 8
test eax, eax
jne 0x490850
push 0x588218
call fcn.004d9bb0
add esp, 4
jmp 0x490c8b
lea ebp, [esp + 0x70]
mov eax, 8
jmp 0x49088a
lea eax, [esp + 0x60]
mov ecx, 0x591f10
push eax
push ebp
call fcn.00457a40
test eax, eax
jne 0x490881
push 0x5881f8
call fcn.004d9bb0
add esp, 4
jmp 0x490c8b
lea ebp, [esp + 0x60]
mov eax, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x38]
cmp ecx, 0x80000004
je 0x4908a6
cmp ecx, 0x80000005
jne 0x490c6c
mov ecx, dword [0x5923bc]
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 0x490c84
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 [0x5926d4]
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov dword [esp + 0x128], edx
mov dword [esp + 0x11c], eax
mov eax, dword [0x5923c0]
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x138], ecx
call esi
test eax, eax
je 0x490c80
mov ecx, dword [0x5923e0]
mov edi, 1
push ecx
mov dword [0x5923d8], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [0x5923d4]
push edx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0xffffffffffffffff
mov ecx, 0x5923dc
call fcn.004fec35
cmp dword [0x5923d8], edi
jne 0x490c05
mov dword [0x5923d8], 0
jmp 0x490c80
push ebp
call fcn.00471ab0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x49088e
jmp 0x490c8b
cmp eax, 0x80000005
je 0x4909a9
cmp eax, 0x80000101
jne 0x490c8b
push ebp
call fcn.004ffcfa
mov byte [esp + 0x1c], al
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 1
jmp 0x49088a
mov al, byte [ebp]
xor ebx, ebx
test al, al
mov esi, ebp
je 0x490a5a
mov al, byte [esi]
cmp al, 0x20
jbe 0x4909d2
cmp al, 0x2c
je 0x4909d2
cmp al, 0x30
jb 0x490ab4
cmp al, 0x39
ja 0x490ab4
cmp al, 0x30
jb 0x4909ea
cmp al, 0x39
ja 0x4909ea
cmp ebx, 3
jge 0x490aed
mov byte [esp + ebx + 0x3c], al
inc ebx
jmp 0x490a1f
cmp al, 0x2c
jne 0x490a1f
lea ecx, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push ecx
call fcn.004ffcfa
add esp, 4
test eax, eax
jl 0x490b25
cmp eax, 0xff
jg 0x490b25
push eax
lea ecx, [esp + 0x28]
call fcn.00470e70
xor ebx, ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4909b8
test ebx, ebx
jle 0x490a5a
lea eax, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push eax
call fcn.004ffcfa
add esp, 4
test eax, eax
jl 0x490b25
cmp eax, 0xff
jg 0x490b25
push eax
lea ecx, [esp + 0x28]
call fcn.00470e70
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.00471350
lea edx, [esp + 0x10]
push 4
push edx
push 4
lea ecx, [esp + 0x30]
call fcn.00471350
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x5c]
add eax, 8
neg ebp
sbb ebp, ebp
mov dword [esp + 0x10], eax
and ebp, ecx
jmp 0x49096f
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 0x5881e8
call fcn.004d9bb0
add esp, 4
jmp 0x490c8b
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 0x5852b4
call fcn.004d9bb0
add esp, 4
jmp 0x490c8b
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 0x5852b4
call fcn.004d9bb0
add esp, 4
jmp 0x490c8b
push ebp
call fcn.004ffcfa
mov word [esp + 0x1c], ax
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 2
jmp 0x49088a
cmp eax, 0x80000501
ja 0x490bdf
je 0x490bc9
cmp eax, 0x80000301
je 0x490bb3
cmp eax, 0x80000401
jne 0x490c8b
push ebp
call fcn.004ffd05
mov dword [esp + 0x1c], eax
add esp, 4
mov dword [esp + 0x1c], edx
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x49088a
push ebp
call fcn.004ffcfa
add esp, 4
mov dword [esp + 0x18], eax
lea ebp, [esp + 0x18]
jmp 0x490885
push ebp
call fcn.00500582
fstp dword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
jmp 0x490885
cmp eax, 0x80000601
jne 0x490c8b
push ebp
call fcn.00500582
fstp qword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x49088a
mov ecx, dword [0x5923c0]
lea eax, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x80], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x490c80
mov eax, dword [0x5923c0]
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 [0x5923bc]
push 0
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x490c80
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x5c]
mov eax, 4
lea ebp, [esp + 0x58]
mov dword [esp + 0x10], eax
mov ecx, dword [0x5923bc]
push 0
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x490c84
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0048fda0
mov esi, 0x5477b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 1
mov dword [esp + 0x24], esi
call fcn.00470d30
lea ecx, [esp + 0x14]
mov byte [esp + 0x34c], 0
call fcn.00514336
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], esi
jmp 0x490cda
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], 0x5477b0
lea ecx, [esp + 0x44]
call fcn.00470d30
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret