Function at 0x494894
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x49489d
xchg dword [ebp - 4], ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x494f32
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x329], 0
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x410], bl
xor edx, edx
push ebp
push 0x494f00
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x489a94]
call fcn.00489e4c
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c8]
mov eax, esi
call fcn.0048e538
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov dword [eax + 0xc8], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x30], edx
mov dword [eax + 0x2c], 0x4976c0
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x8c]
mov dword [eax + 0x8c], ecx
mov ecx, dword [edx + 0x90]
mov dword [eax + 0x90], ecx
mov edx, dword [ebp - 4]
mov dword [eax + 0x38], edx
mov dword [eax + 0x34], 0x4974d4
mov byte [eax + 0x305], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x371], 1
mov eax, dword [ebp - 4]
call fcn.0048b978
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
jne 0x49499b
call fcn.004036bc
jmp 0x494f0a
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004943ec
mov eax, dword [ebp - 4]
cmp word [eax + 0x3b2], 0
je 0x4949ce
mov eax, dword [0x54e6e4]
mov eax, dword [eax]
push eax
mov esi, dword [ebp - 4]
mov cl, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x3b4]
call dword [esi + 0x3b0]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x4949fe
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x4949fe
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x4949fe
mov eax, dword [ebp - 4]
cmp dword [eax + 0x308], 0
jne 0x494a0c
mov byte [ebp - 0x19], 1
call fcn.004036bc
jmp 0x494f0a
test bl, bl
jne 0x494a44
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xa
je 0x494a44
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0x10
je 0x494a44
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xb
je 0x494a44
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0xd
jne 0x494ad1
mov bl, 1
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00496c38
test al, al
je 0x494a76
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x494a76
mov eax, dword [ebp - 0x14]
mov edx, dword [0x54e6e4]
mov edx, dword [edx]
call fcn.00403f34
jne 0x494a78
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x494ad1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x494ad1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x494ad1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x308], 0
je 0x494ad1
mov eax, dword [ebp - 4]
cmp word [eax + 0x3b2], 0
je 0x494ad1
mov eax, dword [0x54e6e4]
mov eax, dword [eax]
push eax
mov esi, dword [ebp - 4]
mov cl, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x3b4]
call dword [esi + 0x3b0]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x494b01
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x494b01
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x494b01
mov eax, dword [ebp - 4]
cmp dword [eax + 0x308], 0
jne 0x494b0f
mov byte [ebp - 0x19], 1
call fcn.004036bc
jmp 0x494f0a
test bl, bl
je 0x494b37
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0049467c
test al, al
jne 0x494c28
call fcn.004036bc
jmp 0x494f0a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x418]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x414]
mov eax, dword [ebp - 4]
call fcn.00499518
mov edx, dword [ebp - 4]
mov esi, dword [edx + 0x308]
mov dword [esi + 0xf0], eax
mov eax, esi
mov dl, 1
call fcn.0048ca10
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x494b8d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x494b8d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
jne 0x494b9b
mov byte [ebp - 0x19], 1
call fcn.004036bc
jmp 0x494f0a
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0048f4e4
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.0048e67c
mov edx, dword [ebp - 0x24]
pop eax
call fcn.00403e2c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0049709c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x494c28
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x494c28
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x494c28
mov eax, dword [ebp - 4]
cmp dword [eax + 0x308], 0
je 0x494c28
mov eax, dword [ebp - 4]
cmp word [eax + 0x3b2], 0
je 0x494c28
mov eax, dword [0x54e6e4]
mov eax, dword [eax]
push eax
mov esi, dword [ebp - 4]
mov cl, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x3b4]
call dword [esi + 0x3b0]
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0x12c
jle 0x494c79
cmp ax, 0x258
jge 0x494c79
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
jne 0x494c79
mov eax, dword [ebp - 4]
cmp word [eax + 0x3c2], 0
jne 0x494c6b
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4917bc]
call fcn.0040ba5c
call fcn.0040361c
mov byte [ebp - 0x19], 1
call fcn.004036bc
jmp 0x494f0a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x308], 0
jne 0x494c93
mov byte [ebp - 0x19], 1
call fcn.004036bc
jmp 0x494f0a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax + 0x2e0], edx
mov dword [eax + 0x2dc], 0x49446c
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, 0x494f48
call fcn.00403e70
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00493b54
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x494d1f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32a], 0
jne 0x494d1f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x494d1f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x308], 0
je 0x494d1f
mov eax, dword [ebp - 4]
cmp word [eax + 0x3b2], 0
je 0x494d1f
mov eax, dword [0x54e6e4]
mov eax, dword [eax]
push eax
mov esi, dword [ebp - 4]
mov cl, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x3b4]
call dword [esi + 0x3b0]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x308], 0
jne 0x494d35
call fcn.004036bc
jmp 0x494f0a
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0x12c
jle 0x494e0e
cmp ax, 0x258
jge 0x494e0e
cmp ax, 0x1a9
je 0x494e0e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
je 0x494e0e
mov eax, dword [ebp - 8]
mov edx, dword [0x54e6e4]
mov edx, dword [edx]
call fcn.00403f34
je 0x494ddf
mov edx, 0x494f48
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00493b54
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x2d8]
cmp ax, 0x12c
jle 0x494da4
cmp ax, 0x258
jl 0x494db0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x368], 0
jne 0x494e0e
mov eax, dword [ebp - 4]
cmp word [eax + 0x3c2], 0
jne 0x494dd1
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4917bc]
call fcn.0040ba5c
call fcn.0040361c
mov byte [ebp - 0x19], 1
call fcn.004036bc
jmp 0x494f0a
mov eax, dword [ebp - 4]
cmp word [eax + 0x3c2], 0
jne 0x494e00
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4917bc]
call fcn.0040ba5c
call fcn.0040361c
mov byte [ebp - 0x19], 1
call fcn.004036bc
jmp 0x494f0a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x308], 0
jne 0x494e28
mov byte [ebp - 0x19], 1
call fcn.004036bc
jmp 0x494f0a
mov eax, dword [ebp - 4]
test byte [eax + 0x2e9], 1
jne 0x494e5e
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0x12c
jge 0x494e5e
mov eax, dword [ebp - 4]
cmp word [eax + 0x2d8], 0x258
jge 0x494e5e
test bl, bl
jne 0x494e5e
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00497dbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494f0a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
test eax, eax
je 0x494ee6
call fcn.0048cd80
cmp byte [ebp - 0x19], 0
jne 0x494ead
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
cmp byte [eax + 0x368], 0
je 0x494ead
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, dword [ebp - 4]
mov dword [eax + 0x58], edx
mov dword [eax + 0x54], 0x497688
jmp 0x494ee6
mov eax, dword [ebp - 4]
cmp word [eax + 0x3ba], 0
je 0x494ece
mov ebx, dword [ebp - 4]
mov cl, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3bc]
call dword [ebx + 0x3b8]
push 0
push 0
push 0x46a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
push eax
call sub.user32.dll_PostMessageA
cmp byte [ebp - 0x19], 0
je 0x494eff
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4917bc]
call fcn.0040ba5c
call fcn.0040361c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494f39
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403bcc
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00403bcc
ret