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

Disassembly:
push 0xffffffffffffffff
push 0x545011
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 0x493623
mov eax, dword [ebx + 0x290]
push 0
push 0
push 0xb8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x493623
lea ecx, [esp + 0x44]
call fcn.00473490
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.004921e0
mov esi, eax
test esi, esi
mov dword [esp + 0x5c], esi
je 0x493607
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004c9bc0
add esp, 4
test eax, eax
jne 0x493607
mov edx, dword [esp + 0x38]
push edx
call fcn.004dec70
add esp, 4
cmp eax, 1
jne 0x493607
mov eax, dword [0x596a0c]
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.0051bcf5
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.00473490
mov eax, dword [esp + 0x38]
mov byte [esp + 0x34c], 2
cmp eax, 0x80000201
mov dword [esp + 0x10], 0
ja 0x4934b9
je 0x49349d
cmp eax, 0x80000004
ja 0x4932bc
je 0x4932a2
cmp eax, 0x80000002
je 0x49319b
cmp eax, 0x80000003
jne 0x4935cb
lea edx, [esp + 0x70]
push edx
push ebp
call fcn.004df390
add esp, 8
test eax, eax
jne 0x493190
push 0x58f588
call fcn.004dc540
add esp, 4
jmp 0x4935cb
lea ebp, [esp + 0x70]
mov eax, 8
jmp 0x4931ca
lea eax, [esp + 0x60]
mov ecx, 0x599ae0
push eax
push ebp
call fcn.00459d10
test eax, eax
jne 0x4931c1
push 0x58f568
call fcn.004dc540
add esp, 4
jmp 0x4935cb
lea ebp, [esp + 0x60]
mov eax, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x38]
cmp ecx, 0x80000004
je 0x4931e6
cmp ecx, 0x80000005
jne 0x4935ac
mov ecx, dword [0x599f8c]
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 0x4935c4
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 [0x59a2a4]
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov dword [esp + 0x128], edx
mov dword [esp + 0x11c], eax
mov eax, dword [0x599f90]
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x138], ecx
call esi
test eax, eax
je 0x4935c0
mov ecx, dword [0x599fb0]
mov edi, 1
push ecx
mov dword [0x599fa8], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [0x599fa4]
push edx
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0xffffffffffffffff
mov ecx, 0x599fac
call fcn.005015e5
cmp dword [0x599fa8], edi
jne 0x493545
mov dword [0x599fa8], 0
jmp 0x4935c0
push ebp
call fcn.00474410
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4931ce
jmp 0x4935cb
cmp eax, 0x80000005
je 0x4932e9
cmp eax, 0x80000101
jne 0x4935cb
push ebp
call fcn.005032aa
mov byte [esp + 0x1c], al
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 1
jmp 0x4931ca
mov al, byte [ebp]
xor ebx, ebx
test al, al
mov esi, ebp
je 0x49339a
mov al, byte [esi]
cmp al, 0x20
jbe 0x493312
cmp al, 0x2c
je 0x493312
cmp al, 0x30
jb 0x4933f4
cmp al, 0x39
ja 0x4933f4
cmp al, 0x30
jb 0x49332a
cmp al, 0x39
ja 0x49332a
cmp ebx, 3
jge 0x49342d
mov byte [esp + ebx + 0x3c], al
inc ebx
jmp 0x49335f
cmp al, 0x2c
jne 0x49335f
lea ecx, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push ecx
call fcn.005032aa
add esp, 4
test eax, eax
jl 0x493465
cmp eax, 0xff
jg 0x493465
push eax
lea ecx, [esp + 0x28]
call fcn.004737d0
xor ebx, ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4932f8
test ebx, ebx
jle 0x49339a
lea eax, [esp + 0x3c]
mov byte [esp + ebx + 0x3c], 0
push eax
call fcn.005032aa
add esp, 4
test eax, eax
jl 0x493465
cmp eax, 0xff
jg 0x493465
push eax
lea ecx, [esp + 0x28]
call fcn.004737d0
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.00473cb0
lea edx, [esp + 0x10]
push 4
push edx
push 4
lea ecx, [esp + 0x30]
call fcn.00473cb0
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 0x4932af
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 0x58f558
call fcn.004dc540
add esp, 4
jmp 0x4935cb
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 0x58c5ac
call fcn.004dc540
add esp, 4
jmp 0x4935cb
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 0x58c5ac
call fcn.004dc540
add esp, 4
jmp 0x4935cb
push ebp
call fcn.005032aa
mov word [esp + 0x1c], ax
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 2
jmp 0x4931ca
cmp eax, 0x80000501
ja 0x49351f
je 0x493509
cmp eax, 0x80000301
je 0x4934f3
cmp eax, 0x80000401
jne 0x4935cb
push ebp
call fcn.005032b5
mov dword [esp + 0x1c], eax
add esp, 4
mov dword [esp + 0x1c], edx
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x4931ca
push ebp
call fcn.005032aa
add esp, 4
mov dword [esp + 0x18], eax
lea ebp, [esp + 0x18]
jmp 0x4931c5
push ebp
call fcn.00503bb2
fstp dword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
jmp 0x4931c5
cmp eax, 0x80000601
jne 0x4935cb
push ebp
call fcn.00503bb2
fstp qword [esp + 0x1c]
add esp, 4
lea ebp, [esp + 0x18]
mov eax, 8
jmp 0x4931ca
mov ecx, dword [0x599f90]
lea eax, [esp + 0x78]
push eax
push ecx
mov dword [esp + 0x80], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4935c0
mov eax, dword [0x599f90]
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 [0x599f8c]
push 0
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4935c0
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 [0x599f8c]
push 0
push eax
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x4935c4
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.004926e0
mov esi, 0x54d7d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 1
mov dword [esp + 0x24], esi
call fcn.00473690
lea ecx, [esp + 0x14]
mov byte [esp + 0x34c], 0
call fcn.00519976
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], esi
jmp 0x49361a
mov dword [esp + 0x34c], 0xffffffff
mov dword [esp + 0x44], 0x54d7d0
lea ecx, [esp + 0x44]
call fcn.00473690
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret