Function at 0x4a997c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.0040403c
mov eax, dword [ebp - 8]
call fcn.0040403c
xor eax, eax
push ebp
push 0x4aa3a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x168], 0
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x1ad], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c4], 1
mov eax, dword [ebp - 4]
call fcn.00579870
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
je 0x4aa383
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004a7b44
xor eax, eax
push ebp
push 0x4a9a2d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x20
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.00413e44
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a9a75
mov eax, dword [ebp - 0x20]
call fcn.004138a8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x100], eax
mov dword [ecx + 0x104], edx
lea eax, [ebp - 0x20]
call fcn.00455a78
xor ecx, ecx
push ebp
push 0x4aa379
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x576fc4]
call fcn.00577378
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x190], ebx
mov eax, ebx
mov dl, 2
call fcn.0057794c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x190]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x1d8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1d8]
call fcn.00403c60
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2f4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
mov dword [eax + 0xc0], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x30], edx
mov dword [eax + 0x2c], 0x4ab7ec
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x94]
mov dword [eax + 0x94], ecx
mov ecx, dword [edx + 0x98]
mov dword [eax + 0x98], ecx
mov edx, dword [ebp - 4]
mov dl, byte [edx + 0x19b]
mov byte [eax + 0x19b], dl
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1a0]
mov dword [eax + 0x1a0], edx
mov edx, dword [ebp - 4]
cmp byte [edx + 0x158], 1
je 0x4a9b76
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x158]
cmp al, 2
je 0x4a9b66
cmp al, 3
jne 0x4a9b72
mov eax, dword [ebp - 4]
test byte [eax + 0x2b8], 2
jne 0x4a9b76
xor edx, edx
jmp 0x4a9b78
mov dl, 1
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x190]
mov byte [esi + 0x150], dl
test dl, dl
je 0x4a9b9a
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x158]
mov byte [esi + 0x158], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
call fcn.005778e0
mov eax, dword [ebp - 4]
cmp word [eax + 0x24e], 0
je 0x4a9bde
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
mov cl, byte [eax + 0xc4]
mov edx, eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x250]
call dword [ebx + 0x24c]
mov eax, dword [ebp - 4]
mov dword [eax + 0x2b0], 0
mov dword [eax + 0x2b4], 0
cmp byte [ebp + 0x14], 1
je 0x4a9c1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
mov al, byte [eax + 0xdc]
add al, 0xf6
sub al, 2
jb 0x4a9c1c
sub al, 1
je 0x4a9c1c
sub al, 3
jne 0x4a9ced
mov byte [ebp + 0x14], 1
mov edx, 0x4aa3c0
mov eax, dword [ebp - 4]
call fcn.004aa85c
test al, al
je 0x4a9c81
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x4a9c64
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2cc], 0
je 0x4a9c64
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, 0x4aa3d0
call fcn.00403ed4
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004a728c
jmp 0x4a9c81
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, 0x4aa3e4
call fcn.00403ed4
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004a728c
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004aae90
test al, al
je 0x4a9cb1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
je 0x4a9cb1
mov eax, dword [ebp - 0x14]
mov edx, dword [0x585ebc]
mov edx, dword [edx]
call fcn.00403f98
jne 0x4a9ced
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x17c]
cmp ax, 0xe2
je 0x4a9cc6
test ax, ax
jne 0x4a9ce9
mov eax, dword [ebp - 4]
mov byte [eax + 0x168], 1
mov ecx, dword [0x585ebc]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407e00]
call fcn.0040bb58
call fcn.00403680
mov byte [ebp + 0x14], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
jne 0x4a9d0d
mov eax, dword [ebp - 4]
mov byte [eax + 0x168], 2
call fcn.00403720
jmp 0x4aa383
cmp byte [ebp + 0x14], 0
je 0x4a9da2
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
call fcn.004089b8
mov edx, dword [ebp - 0x28]
mov eax, 0x4aa3f8
call fcn.00404170
test eax, eax
jle 0x4a9d56
push ebp
call fcn.004a9798
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x168], 2
jne 0x4a9d56
call fcn.00403720
jmp 0x4aa383
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004a7dd0
test al, al
jne 0x4a9e25
mov eax, dword [ebp - 4]
mov byte [eax + 0x168], 2
mov eax, dword [ebp - 4]
mov byte [eax + 0x1ad], 1
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4a4b2c]
call fcn.0040bb58
call fcn.00403680
call fcn.00403720
jmp 0x4aa383
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2d4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2d0]
mov eax, dword [ebp - 4]
call fcn.004ada3c
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x190]
mov dword [ebx + 0xf4], eax
mov eax, ebx
mov dl, 1
call fcn.0057aa60
mov eax, dword [ebp - 4]
cmp word [eax + 0x122], 0
je 0x4a9e05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x120]
mov dword [eax + 0x120], ecx
mov ecx, dword [edx + 0x124]
mov dword [eax + 0x124], ecx
mov eax, dword [ebp - 4]
call fcn.004ab1bc
test al, al
jne 0x4a9e25
mov eax, dword [ebp - 4]
mov byte [eax + 0x168], 2
call fcn.00403720
jmp 0x4aa383
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
jne 0x4a9e45
mov eax, dword [ebp - 4]
mov byte [eax + 0x168], 2
call fcn.00403720
jmp 0x4aa383
mov dl, 0xf
mov eax, dword [ebp - 4]
call fcn.004aba90
test al, al
je 0x4a9e5d
call fcn.00403720
jmp 0x4aa383
mov eax, dword [ebp - 4]
cmp word [eax + 0x122], 0
je 0x4a9e8e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x120]
mov dword [eax + 0x120], ecx
mov ecx, dword [edx + 0x124]
mov dword [eax + 0x124], ecx
cmp byte [ebp + 0x14], 0
je 0x4a9eb6
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
call fcn.004089b8
mov edx, dword [ebp - 0x28]
mov eax, 0x4aa3f8
call fcn.00404170
test eax, eax
jne 0x4a9ed3
push ebp
call fcn.004a9798
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x168], 2
jne 0x4a9ed3
call fcn.00403720
jmp 0x4aa383
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x17c]
cmp ax, 0x12c
jle 0x4a9f35
cmp ax, 0x258
jge 0x4a9f35
mov eax, dword [ebp - 4]
mov byte [eax + 0x168], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x266], 0
jne 0x4a9f0a
call fcn.00403720
jmp 0x4aa383
mov byte [ebp - 0x22], 0
push 0xf
lea ecx, [ebp - 0x22]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x268]
call dword [ebx + 0x264]
cmp byte [ebp - 0x22], 0
jne 0x4a9f35
call fcn.00403720
jmp 0x4aa383
mov eax, dword [ebp - 4]
test byte [eax + 0x2b8], 2
jne 0x4a9f51
cmp byte [ebp + 0x14], 0
jne 0x4a9f51
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004ac060
mov eax, dword [ebp - 4]
cmp word [eax + 0x22e], 0
je 0x4a9f70
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x230]
call dword [ebx + 0x22c]
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x1b0], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1b4], ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ad], 0
jne 0x4a9fb8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ae], 0
jne 0x4a9fb8
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
mov edx, dword [ebp - 0xc]
call fcn.0057a068
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
xor ecx, ecx
xor edx, edx
call fcn.0057c0e8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ad], 0
jne 0x4aa102
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ae], 0
jne 0x4aa102
mov eax, dword [ebp - 4]
cmp word [eax + 0x17c], 0xc7
jge 0x4aa102
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.0057ad24
mov eax, dword [ebp - 4]
mov byte [eax + 0x1ac], 1
xor edx, edx
push ebp
push 0x4aa0fb
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1bc]
call fcn.00403ca4
jmp 0x4aa0aa
push 0
push 1
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004aab5c
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1bc]
call fcn.00403f98
je 0x4aa0aa
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x585ebc]
mov edx, dword [edx]
call fcn.00403f98
je 0x4aa0aa
lea eax, [ebp - 0x1c]
mov edx, dword [0x585ebc]
mov edx, dword [edx]
call fcn.00403ca4
mov eax, dword [ebp - 4]
cmp word [eax + 0x236], 0
je 0x4aa09c
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x238]
call dword [ebx + 0x234]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x1b4], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x17c]
cmp ax, 0xc7
jge 0x4aa0db
test ax, ax
je 0x4aa0db
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
je 0x4aa0db
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ae], 0
je 0x4aa034
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa12f
mov eax, dword [ebp - 4]
call fcn.0057ad7c
mov eax, dword [ebp - 4]
mov byte [eax + 0x1ac], 0
ret
mov eax, dword [ebp - 4]
cmp word [eax + 0x236], 0
je 0x4aa121
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x238]
call dword [ebx + 0x234]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x1b4], eax
mov byte [ebp - 0x21], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa383
cmp byte [ebp - 0x21], 0
jne 0x4aa158
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
xor ecx, ecx
xor edx, edx
call fcn.0057c0e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2c8], 0
jle 0x4aa16e
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004adba8
cmp byte [ebp - 0x21], 0
jne 0x4aa275
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1ad], 0
jne 0x4aa275
mov edx, dword [ebp - 4]
cmp byte [edx + 0x1ae], 0
jne 0x4aa275
mov edx, dword [ebp - 4]
cmp word [edx + 0x17c], 0xc7
jge 0x4aa275
mov edx, dword [ebp - 4]
cmp dword [edx + 0x190], 0
je 0x4aa1d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
test eax, eax
je 0x4aa275
cmp byte [eax + 0x1ad], 0
jne 0x4aa275
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.0057ad24
mov eax, dword [ebp - 4]
mov byte [eax + 0x1ac], 1
xor eax, eax
push ebp
push 0x4aa26e
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4aa20f
push 0
push 1
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004aab5c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ad], 0
jne 0x4aa24e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1ae], 0
jne 0x4aa24e
mov eax, dword [ebp - 4]
cmp word [eax + 0x17c], 0xc7
jge 0x4aa24e
mov eax, dword [ebp - 4]
cmp word [eax + 0x17c], 0
je 0x4aa24e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x200], 0
jne 0x4aa1fb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa275
mov eax, dword [ebp - 4]
call fcn.0057ad7c
mov eax, dword [ebp - 4]
mov byte [eax + 0x1ac], 0
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0x168], 0
jne 0x4aa30d
mov eax, dword [ebp - 4]
mov bx, word [eax + 0x17c]
cmp bx, 0x12c
jle 0x4aa2ed
cmp bx, 0x258
jge 0x4aa2ed
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1bc]
call fcn.004089b8
mov edx, dword [ebp - 0x28]
mov eax, 0x4aa408
call fcn.00404170
test eax, eax
jg 0x4aa2e1
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1bc]
call fcn.004089b8
mov edx, dword [ebp - 0x28]
mov eax, 0x4aa41c
call fcn.00404170
test eax, eax
jle 0x4aa2ed
mov eax, dword [ebp - 4]
mov byte [eax + 0x168], 1
jmp 0x4aa30d
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x17c]
cmp ax, 0x12c
jle 0x4aa30d
cmp ax, 0x258
jge 0x4aa30d
mov eax, dword [ebp - 4]
mov byte [eax + 0x168], 2
cmp byte [ebp - 0x21], 0
jne 0x4aa332
mov eax, dword [ebp - 4]
cmp word [eax + 0x236], 0
je 0x4aa332
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x238]
call dword [ebx + 0x234]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x190]
test eax, eax
je 0x4aa351
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x190], edx
cmp byte [ebp - 0x21], 0
je 0x4aa378
mov eax, dword [ebp - 4]
cmp word [eax + 0x25e], 0
je 0x4aa378
mov ebx, dword [ebp - 4]
mov cl, 0xf
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x260]
call dword [ebx + 0x25c]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa3ad
lea eax, [ebp - 0x28]
call fcn.00403c0c
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00403c30
ret