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

Disassembly:
push 0xffffffffffffffff
push 0x5450c1
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 0x493663
mov eax, dword [ebx + 0x290]
push 0
push 0
push 0xb8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x493663
lea ecx, [esp + 0x44]
call fcn.004733a0
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.00492220
mov esi, eax
test esi, esi
mov dword [esp + 0x5c], esi
je 0x493647
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004c9c50
add esp, 4
test eax, eax
jne 0x493647
mov edx, dword [esp + 0x38]
push edx
call fcn.004ded00
add esp, 4
cmp eax, 1
jne 0x493647
mov eax, dword [0x596a5c]
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.0051bd85
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.004733a0
mov eax, dword [esp + 0x38]
mov byte [esp + 0x34c], 2
cmp eax, 0x80000201
mov dword [esp + 0x10], 0
ja 0x4934f9
je 0x4934dd
cmp eax, 0x80000004
ja 0x4932fc
je 0x4932e2
cmp eax, 0x80000002
je 0x4931db
cmp eax, 0x80000003
jne 0x49360b
lea edx, [esp + 0x70]
push edx
push ebp
call fcn.004df420
add esp, 8
test eax, eax
jne 0x4931d0
push 0x58f5d8
call fcn.004dc5d0
add esp, 4
jmp 0x49360b
lea ebp, [esp + 0x70]
mov eax, 8
jmp 0x49320a
lea eax, [esp + 0x60]
mov ecx, 0x599b30
push eax
push ebp
call fcn.00459f10
test eax, eax
jne 0x493201
push 0x58f5b8
call fcn.004dc5d0
add esp, 4
jmp 0x49360b
lea ebp, [esp + 0x60]
mov eax, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x38]
cmp ecx, 0x80000004
je 0x493226
cmp ecx, 0x80000005
jne 0x4935ec
mov ecx, dword [0x599fdc]
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 0x493604
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 [0x59a2f4]
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov dword [esp + 0x128], edx
mov dword [esp + 0x11c], eax
mov eax, dword [0x599fe0]
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x138], ecx
call esi
test eax, eax
je 0x493600
mov ecx, dword [0x59a000]
mov edi, 1
push ecx
mov dword [0x599ff8], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [0x599ff4]
push edx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0xffffffffffffffff
mov ecx, 0x599ffc
call fcn.00501685
cmp dword [0x599ff8], edi
jne 0x493585
mov dword [0x599ff8], 0
jmp 0x493600
push ebp
call fcn.00474320
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x49320e
jmp 0x49360b
cmp eax, 0x80000005
je 0x493329
cmp eax, 0x80000101
jne 0x49360b
push ebp
call fcn.0050334a
mov byte [esp + 0x1c], al
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 1
jmp 0x49320a
mov al, byte [ebp]
xor ebx, ebx
test al, al
mov esi, ebp
je 0x4933da
mov al, byte [esi]
cmp al, 0x20
jbe 0x493352
cmp al, 0x2c
je 0x493352
cmp al, 0x30
jb 0x493434
cmp al, 0x39
ja 0x493434
cmp al, 0x30
jb 0x49336a
cmp al, 0x39
ja 0x49336a
cmp ebx, 3
jge 0x49346d
mov byte [esp + ebx + 0x3c], al
inc ebx
jmp 0x49339f
cmp al, 0x2c
jne 0x49339f
lea ecx, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push ecx
call fcn.0050334a
add esp, 4
test eax, eax
jl 0x4934a5
cmp eax, 0xff
jg 0x4934a5
push eax
lea ecx, [esp + 0x28]
call fcn.004736e0
xor ebx, ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x493338
test ebx, ebx
jle 0x4933da
lea eax, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push eax
call fcn.0050334a
add esp, 4
test eax, eax
jl 0x4934a5
cmp eax, 0xff
jg 0x4934a5
push eax
lea ecx, [esp + 0x28]
call fcn.004736e0
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.00473bc0
lea edx, [esp + 0x10]
push 4
push edx
push 4
lea ecx, [esp + 0x30]
call fcn.00473bc0
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 0x4932ef
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 0x58f5a8
call fcn.004dc5d0
add esp, 4
jmp 0x49360b
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 0x58c604
call fcn.004dc5d0
add esp, 4
jmp 0x49360b
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 0x58c604
call fcn.004dc5d0
add esp, 4
jmp 0x49360b
push ebp
call fcn.0050334a
mov word [esp + 0x1c], ax
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 2
jmp 0x49320a
cmp eax, 0x80000501
ja 0x49355f
je 0x493549
cmp eax, 0x80000301
je 0x493533
cmp eax, 0x80000401
jne 0x49360b
push ebp
call fcn.00503355
mov dword [esp + 0x1c], eax
add esp, 4
mov dword [esp + 0x1c], edx
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x49320a
push ebp
call fcn.0050334a
add esp, 4
mov dword [esp + 0x18], eax
lea ebp, [esp + 0x18]
jmp 0x493205
push ebp
call fcn.00503c52
fstp dword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
jmp 0x493205
cmp eax, 0x80000601
jne 0x49360b
push ebp
call fcn.00503c52
fstp qword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x49320a
mov ecx, dword [0x599fe0]
lea eax, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x80], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x493600
mov eax, dword [0x599fe0]
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 [0x599fdc]
push 0
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x493600
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 [0x599fdc]
push 0
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x493604
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.00492720
mov esi, 0x54d7d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 1
mov dword [esp + 0x24], esi
call fcn.004735a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x34c], 0
call fcn.00519a06
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], esi
jmp 0x49365a
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], 0x54d7d0
lea ecx, [esp + 0x44]
call fcn.004735a0
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret