Function at 0x4b1354
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 0x4b1d28
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 0
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x335], 0
mov eax, dword [ebp - 4]
call fcn.004a603c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4b1d05
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004af488
xor eax, eax
push ebp
push 0x4b13fb
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 0x4b1443
mov eax, dword [ebp - 0x20]
call fcn.004138a8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xf8], eax
mov dword [ecx + 0xfc], edx
lea eax, [ebp - 0x20]
call fcn.00455aa0
xor ecx, ecx
push ebp
push 0x4b1cfb
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4a3798]
call fcn.004a3b4c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x318], ebx
mov eax, ebx
mov dl, 2
call fcn.004a416c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x318]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x360]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x360]
call fcn.00403c60
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x470]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov dword [eax + 0xc8], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x30], edx
mov dword [eax + 0x2c], 0x4b308c
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 + 0x323]
mov byte [eax + 0x323], dl
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x328]
mov dword [eax + 0x328], edx
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2e8], 1
je 0x4b1544
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2e8]
cmp al, 2
je 0x4b1534
cmp al, 3
jne 0x4b1540
mov eax, dword [ebp - 4]
test byte [eax + 0x440], 2
jne 0x4b1544
xor edx, edx
jmp 0x4b1546
mov dl, 1
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x318]
mov byte [esi + 0x2e0], dl
test dl, dl
je 0x4b1568
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2e8]
mov byte [esi + 0x2e8], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
call fcn.004a4104
mov eax, dword [ebp - 4]
mov dword [eax + 0x438], 0
mov dword [eax + 0x43c], 0
cmp byte [ebp + 0x14], 1
je 0x4b15d0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0xa
je 0x4b15d0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0x10
je 0x4b15d0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0xb
je 0x4b15d0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0xd
jne 0x4b16a1
mov byte [ebp + 0x14], 1
mov edx, 0x4b1d40
mov eax, dword [ebp - 4]
call fcn.004b21dc
test al, al
je 0x4b1635
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x4b1618
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44b], 0
je 0x4b1618
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, 0x4b1d50
call fcn.00403ed4
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004aec04
jmp 0x4b1635
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, 0x4b1d64
call fcn.00403ed4
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004aec04
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004b2630
test al, al
je 0x4b1665
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4b1665
mov eax, dword [ebp - 0x14]
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403f98
jne 0x4b16a1
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0xe2
je 0x4b167a
test ax, ax
jne 0x4b169d
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
mov ecx, dword [0x581dd8]
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 + 0x394], 0
jne 0x4b16c1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 2
call fcn.00403720
jmp 0x4b1d05
cmp byte [ebp + 0x14], 0
je 0x4b1756
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b4]
call fcn.004089b8
mov edx, dword [ebp - 0x28]
mov eax, 0x4b1d78
call fcn.00404170
test eax, eax
jle 0x4b170a
push ebp
call fcn.004b117c
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f0], 2
jne 0x4b170a
call fcn.00403720
jmp 0x4b1d05
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004af714
test al, al
jne 0x4b17c1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 2
mov eax, dword [ebp - 4]
mov byte [eax + 0x335], 1
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4ac420]
call fcn.0040bb58
call fcn.00403680
call fcn.00403720
jmp 0x4b1d05
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x450]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44c]
mov eax, dword [ebp - 4]
call fcn.004b5168
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x318]
mov dword [ebx + 0xf4], eax
mov eax, ebx
mov dl, 1
call fcn.004a7248
mov eax, dword [ebp - 4]
cmp word [eax + 0x11a], 0
je 0x4b17b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x118]
mov dword [eax + 0x118], ecx
mov ecx, dword [edx + 0x11c]
mov dword [eax + 0x11c], ecx
mov eax, dword [ebp - 4]
call fcn.004b2a84
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
jne 0x4b17e1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 2
call fcn.00403720
jmp 0x4b1d05
mov dl, 0xf
mov eax, dword [ebp - 4]
call fcn.004b31d8
test al, al
je 0x4b17f9
call fcn.00403720
jmp 0x4b1d05
mov eax, dword [ebp - 4]
cmp word [eax + 0x11a], 0
je 0x4b182a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x118]
mov dword [eax + 0x118], ecx
mov ecx, dword [edx + 0x11c]
mov dword [eax + 0x11c], ecx
cmp byte [ebp + 0x14], 0
je 0x4b1852
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b4]
call fcn.004089b8
mov edx, dword [ebp - 0x28]
mov eax, 0x4b1d78
call fcn.00404170
test eax, eax
jne 0x4b186f
push ebp
call fcn.004b117c
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f0], 2
jne 0x4b186f
call fcn.00403720
jmp 0x4b1d05
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0x12c
jle 0x4b18d1
cmp ax, 0x258
jge 0x4b18d1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x3ee], 0
jne 0x4b18a6
call fcn.00403720
jmp 0x4b1d05
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 + 0x3f0]
call dword [ebx + 0x3ec]
cmp byte [ebp - 0x22], 0
jne 0x4b18d1
call fcn.00403720
jmp 0x4b1d05
mov eax, dword [ebp - 4]
test byte [eax + 0x440], 2
jne 0x4b18ed
cmp byte [ebp + 0x14], 0
jne 0x4b18ed
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004b37a0
mov eax, dword [ebp - 4]
cmp word [eax + 0x3be], 0
je 0x4b190c
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c0]
call dword [ebx + 0x3bc]
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x338], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x33c], ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4b1954
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4b1954
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [ebp - 0xc]
call fcn.004a684c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
xor ecx, ecx
xor edx, edx
call fcn.004a8934
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4b1a9c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4b1a9c
mov eax, dword [ebp - 4]
cmp word [eax + 0x306], 0xc7
jge 0x4b1a9c
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.004a7540
mov eax, dword [ebp - 4]
mov byte [eax + 0x334], 1
xor edx, edx
push ebp
push 0x4b1a95
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x344]
call fcn.00403ca4
jmp 0x4b1a44
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004b24a4
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x344]
call fcn.00403f98
je 0x4b1a44
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403f98
je 0x4b1a44
lea eax, [ebp - 0x1c]
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403ca4
mov eax, dword [ebp - 4]
cmp word [eax + 0x3c6], 0
je 0x4b1a36
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c8]
call dword [ebx + 0x3c4]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x33c], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0xc7
jge 0x4b1a75
test ax, ax
je 0x4b1a75
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4b1a75
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
je 0x4b19d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1ac9
mov eax, dword [ebp - 4]
call fcn.004a7590
mov eax, dword [ebp - 4]
mov byte [eax + 0x334], 0
ret
mov eax, dword [ebp - 4]
cmp word [eax + 0x3c6], 0
je 0x4b1abb
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c8]
call dword [ebx + 0x3c4]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x33c], eax
mov byte [ebp - 0x21], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1d05
cmp byte [ebp - 0x21], 0
jne 0x4b1af2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
xor ecx, ecx
xor edx, edx
call fcn.004a8934
cmp byte [ebp - 0x21], 0
jne 0x4b1bf7
mov edx, dword [ebp - 4]
cmp byte [edx + 0x335], 0
jne 0x4b1bf7
mov edx, dword [ebp - 4]
cmp byte [edx + 0x336], 0
jne 0x4b1bf7
mov edx, dword [ebp - 4]
cmp word [edx + 0x306], 0xc7
jge 0x4b1bf7
mov edx, dword [ebp - 4]
cmp dword [edx + 0x318], 0
je 0x4b1b58
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
test eax, eax
je 0x4b1bf7
cmp byte [eax + 0x335], 0
jne 0x4b1bf7
mov edx, 0x1d4c0
mov eax, dword [ebp - 4]
call fcn.004a7540
mov eax, dword [ebp - 4]
mov byte [eax + 0x334], 1
xor eax, eax
push ebp
push 0x4b1bf0
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4b1b91
push 0
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004b24a4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4b1bd0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4b1bd0
mov eax, dword [ebp - 4]
cmp word [eax + 0x306], 0xc7
jge 0x4b1bd0
mov eax, dword [ebp - 4]
cmp word [eax + 0x306], 0
je 0x4b1bd0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
jne 0x4b1b7f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1bf7
mov eax, dword [ebp - 4]
call fcn.004a7590
mov eax, dword [ebp - 4]
mov byte [eax + 0x334], 0
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f0], 0
jne 0x4b1c8f
mov eax, dword [ebp - 4]
mov bx, word [eax + 0x306]
cmp bx, 0x12c
jle 0x4b1c6f
cmp bx, 0x258
jge 0x4b1c6f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
call fcn.004089b8
mov edx, dword [ebp - 0x28]
mov eax, 0x4b1d88
call fcn.00404170
test eax, eax
jg 0x4b1c63
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
call fcn.004089b8
mov edx, dword [ebp - 0x28]
mov eax, 0x4b1d9c
call fcn.00404170
test eax, eax
jle 0x4b1c6f
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
jmp 0x4b1c8f
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0x12c
jle 0x4b1c8f
cmp ax, 0x258
jge 0x4b1c8f
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 2
cmp byte [ebp - 0x21], 0
jne 0x4b1cb4
mov eax, dword [ebp - 4]
cmp word [eax + 0x3c6], 0
je 0x4b1cb4
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3c8]
call dword [ebx + 0x3c4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
test eax, eax
je 0x4b1cd3
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x318], edx
cmp byte [ebp - 0x21], 0
je 0x4b1cfa
mov eax, dword [ebp - 4]
cmp word [eax + 0x3e6], 0
je 0x4b1cfa
mov ebx, dword [ebp - 4]
mov cl, 0xf
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3e8]
call dword [ebx + 0x3e4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1d2f
lea eax, [ebp - 0x28]
call fcn.00403c0c
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00403c30
ret