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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d1d6c
push eax
mov eax, 0x11d4
mov dword fs:[0], esp
call fcn.004be3a0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
mov ebp, ecx
xor edi, edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
call fcn.004962c0
cmp eax, edi
jl 0x494c18
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x494c18
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [edx + 0x24]
mov ecx, dword [esp + 0x1c]
push 0x100
lea edx, [esp + 0xe8]
push ecx
push edx
call fcn.004c0087
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
call dword [0x4d533c]
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4948e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
push edi
push edi
push 0x4d8150
call dword [0x4d5278]
mov esi, eax
cmp esi, 0xffffffff
je 0x4949a2
mov ebx, dword [0x4d5288]
lea edx, [esp + 0x70]
push edx
push edi
push esi
mov dword [esp + 0x7c], 0x1c
call ebx
test eax, eax
je 0x49498d
mov ebp, dword [0x4d5284]
push 0
lea eax, [esp + 0x1e8]
push 0x1000
lea ecx, [esp + 0x78]
push eax
push ecx
push esi
inc edi
call ebp
test eax, eax
mov dword [esp + 0x14], eax
je 0x49495a
lea edx, [esp + 0x1e4]
lea eax, [esp + 0xe4]
push edx
push eax
call fcn.004beb34
add esp, 8
test eax, eax
je 0x494971
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], 0x1c
push ecx
push edi
push esi
call ebx
test eax, eax
jne 0x49491e
jmp 0x49498b
lea edx, [esp + 0x70]
push edx
push esi
push 5
call dword [0x4d5280]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 1
xor edi, edi
push esi
call dword [0x4d528c]
cmp dword [esp + 0x20], edi
jne 0x494c06
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x8c]
call fcn.0046bef0
lea ecx, [esp + 0xb8]
mov dword [esp + 0x11ec], edi
call fcn.0046bef0
mov al, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x11f0], 1
mov byte [esp + 0x44], al
call fcn.00406ae1
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov cl, byte [esp + 0x13]
push edi
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
mov byte [esp + 0x11f0], 2
call fcn.00406ae1
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
push edi
push 0x640
push 0x80000002
lea ecx, [esp + 0x98]
mov byte [esp + 0x11f8], 3
call fcn.0046c420
test eax, eax
je 0x494b4f
lea edx, [esp + 0x28]
lea ecx, [esp + 0x8c]
push edx
call fcn.0046dd00
test eax, eax
je 0x494b4f
lea eax, [esp + 0x28]
push edi
push eax
lea ecx, [esp + 0x94]
call fcn.004a7bd0
push eax
lea ecx, [esp + 0xc4]
call fcn.0046c0b0
test eax, eax
je 0x494b17
push edi
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x501a04
call fcn.00405d32
lea ecx, [esp + 0x5c]
push ecx
push 0x645
lea ecx, [esp + 0xdc]
call fcn.0046d000
mov eax, dword [esp + 0x44]
mov esi, 0x4d58e0
cmp eax, edi
je 0x494aa5
mov esi, eax
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x58]
push edx
call fcn.00427050
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x494abe
mov eax, 0x4d58e0
push esi
push eax
call fcn.004bf6d2
add esp, 8
test eax, eax
mov eax, dword [esp + 0x68]
sete bl
cmp eax, edi
je 0x494ae2
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x494b07
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x494afe
cmp al, 0xff
je 0x494afe
dec al
mov byte [ecx], al
jmp 0x494b07
push ecx
call fcn.004bcb64
add esp, 4
test bl, bl
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
jne 0x494b32
lea eax, [esp + 0x28]
lea ecx, [esp + 0x8c]
push eax
call fcn.0046dd00
test eax, eax
jne 0x494a45
jmp 0x494b4f
lea ecx, [esp + 0xb8]
call fcn.0046e660
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x90]
call fcn.0046e160
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x494b64
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x494b89
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x494b80
cmp al, 0xff
je 0x494b80
dec al
mov byte [ecx], al
jmp 0x494b89
push ecx
call fcn.004bcb64
add esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], edi
cmp eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
je 0x494baa
push eax
call fcn.004bcb64
add esp, 4
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x494bcf
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x494bc6
cmp al, 0xff
je 0x494bc6
dec al
mov byte [ecx], al
jmp 0x494bcf
push ecx
call fcn.004bcb64
add esp, 4
lea ecx, [esp + 0xb8]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov byte [esp + 0x11ec], 0
call fcn.0046bf70
lea ecx, [esp + 0x8c]
mov dword [esp + 0x11ec], 0xffffffff
call fcn.0046bf70
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov ecx, dword [esp + 0x11e4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x11e0
ret