Function at 0x4af9b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4af9c1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040403c
xor eax, eax
push ebp
push 0x4b0620
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x335], 0
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x39a], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x3de], 0
je 0x4afa38
mov eax, dword [0x581dd8]
mov eax, dword [eax]
push eax
mov ebx, dword [ebp - 4]
mov cl, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3e0]
call dword [ebx + 0x3dc]
lea eax, [ebp - 0x2c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040408c
mov eax, dword [ebp - 0x2c]
mov edx, 0x4b0638
call fcn.00403f98
jne 0x4afc5b
lea eax, [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.004040cc
push 0
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x4b0644
mov eax, dword [ebp - 8]
call fcn.004537d4
push 0
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov edx, 0x4b0650
mov eax, dword [ebp - 0x20]
call fcn.004537d4
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
call fcn.00403ca4
mov eax, dword [ebp - 4]
mov byte [eax + 0x308], 1
xor eax, eax
push ebp
push 0x4afb12
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, 0x4b065c
call fcn.00403ed4
mov ecx, dword [ebp - 0x2c]
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.004a8bdc
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, 0x4b065c
call fcn.00403ed4
mov edx, dword [ebp - 0x2c]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.004aec04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afb19
mov eax, dword [ebp - 4]
mov byte [eax + 0x308], 0
ret
xor ecx, ecx
push ebp
push 0x4b05eb
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, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov dword [ebx + 0xc8], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x2c], 0x4b3054
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x94]
mov dword [ebx + 0x94], edx
mov edx, dword [eax + 0x98]
mov dword [ebx + 0x98], edx
mov eax, dword [ebp - 4]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x34], 0x4b2ea0
mov eax, ebx
mov dl, 1
call fcn.004a416c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
add eax, 0x360
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x360]
call fcn.00403c60
mov eax, dword [ebp - 4]
cmp word [eax + 0x112], 0
je 0x4afd26
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x110]
mov dword [eax + 0x110], ecx
mov ecx, dword [edx + 0x114]
mov dword [eax + 0x114], ecx
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2e8], 1
je 0x4afd53
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2e8]
cmp al, 2
je 0x4afd43
cmp al, 3
jne 0x4afd4f
mov eax, dword [ebp - 4]
test byte [eax + 0x440], 1
jne 0x4afd53
xor edx, edx
jmp 0x4afd55
mov dl, 1
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x318]
mov byte [esi + 0x2e0], dl
test dl, dl
je 0x4afd77
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x2e8]
mov byte [esi + 0x2e8], al
mov eax, dword [ebp - 4]
mov byte [eax + 0x399], 1
mov eax, dword [ebp - 4]
call fcn.004a603c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
jne 0x4afd9f
call fcn.00403720
jmp 0x4b05f5
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004af488
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4afdd9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4afdd9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4afdd9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
jne 0x4afe11
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4afdf1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
je 0x4afdfd
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 2
jmp 0x4afe07
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
call fcn.00403720
jmp 0x4b05f5
cmp byte [ebp - 9], 0
jne 0x4afe4b
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0xa
je 0x4afe4b
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0x10
je 0x4afe4b
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0xb
je 0x4afe4b
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe4], 0xd
jne 0x4afefc
mov byte [ebp - 9], 1
mov edx, 0x4b067c
mov eax, dword [ebp - 4]
call fcn.004b21dc
test al, al
je 0x4afe6f
xor ecx, ecx
mov edx, 0x4b068c
mov eax, dword [ebp - 4]
call fcn.004aec04
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004b2630
test al, al
je 0x4afe9f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4afe9f
mov eax, dword [ebp - 0x18]
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403f98
jne 0x4afea3
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4afefc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4afefc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4afefc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
je 0x4afefc
mov eax, dword [ebp - 4]
cmp word [eax + 0x3de], 0
je 0x4afefc
mov eax, dword [0x581dd8]
mov eax, dword [eax]
push eax
mov ebx, dword [ebp - 4]
mov cl, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3e0]
call dword [ebx + 0x3dc]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4aff2c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4aff2c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4aff2c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
jne 0x4aff64
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4aff44
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
je 0x4aff50
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 2
jmp 0x4aff5a
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
call fcn.00403720
jmp 0x4b05f5
cmp byte [ebp - 9], 0
je 0x4aff98
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004af714
test al, al
jne 0x4b0087
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
call fcn.00403720
jmp 0x4b05f5
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 byte [eax + 0x335], 0
jne 0x4affee
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4affee
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
jne 0x4b0026
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4b0006
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
je 0x4b0012
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 2
jmp 0x4b001c
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
call fcn.00403720
jmp 0x4b05f5
mov eax, dword [ebp - 4]
call fcn.004b2a84
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4b0087
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4b0087
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4b0087
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
je 0x4b0087
mov eax, dword [ebp - 4]
cmp word [eax + 0x3de], 0
je 0x4b0087
mov eax, dword [0x581dd8]
mov eax, dword [eax]
push eax
mov ebx, dword [ebp - 4]
mov cl, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3e0]
call dword [ebx + 0x3dc]
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0x12c
jle 0x4b00f6
cmp ax, 0x258
jge 0x4b00f6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
jne 0x4b00f6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
jne 0x4b00c1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 2
jmp 0x4b00cb
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x3ee], 0
jne 0x4b00ec
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4ac420]
call fcn.0040bb58
call fcn.00403680
call fcn.00403720
jmp 0x4b05f5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
jne 0x4b0116
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
call fcn.00403720
jmp 0x4b05f5
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 9]
mov byte [eax + 0x449], dl
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax + 0x2f8], edx
mov dword [eax + 0x2f4], 0x4af504
lea edx, [ebp - 0x2c]
mov eax, 0x4ac3b0
call fcn.00405c64
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
call fcn.00403e90
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004aec04
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4b01b6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4b01b6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4b01b6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
je 0x4b01b6
mov eax, dword [ebp - 4]
cmp word [eax + 0x3de], 0
je 0x4b01b6
mov eax, dword [0x581dd8]
mov eax, dword [eax]
push eax
mov ebx, dword [ebp - 4]
mov cl, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3e0]
call dword [ebx + 0x3dc]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
jne 0x4b01d6
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
call fcn.00403720
jmp 0x4b05f5
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0x12c
jle 0x4b02d0
cmp ax, 0x258
jge 0x4b02d0
cmp ax, 0x1aa
je 0x4b02d0
cmp ax, 0x1a9
je 0x4b02d0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4b02d0
mov eax, dword [ebp - 8]
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403f98
je 0x4b029b
lea edx, [ebp - 0x2c]
mov eax, 0x4ac3b0
call fcn.00405c64
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004aec04
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0x12c
jle 0x4b025a
cmp ax, 0x258
jl 0x4b0266
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
jne 0x4b02d0
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x3ee], 0
jne 0x4b0291
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4ac420]
call fcn.0040bb58
call fcn.00403680
call fcn.00403720
jmp 0x4b05f5
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x3ee], 0
jne 0x4b02c6
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4ac420]
call fcn.0040bb58
call fcn.00403680
call fcn.00403720
jmp 0x4b05f5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
jne 0x4b02f0
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
call fcn.00403720
jmp 0x4b05f5
mov eax, dword [ebp - 4]
test byte [eax + 0x440], 1
jne 0x4b0376
mov eax, dword [ebp - 4]
cmp word [eax + 0x306], 0x12c
jge 0x4b0376
mov eax, dword [ebp - 4]
cmp word [eax + 0x306], 0x258
jge 0x4b0376
cmp byte [ebp - 9], 0
jne 0x4b0376
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004b37a0
jmp 0x4b0376
lea ecx, [ebp - 0x2c]
mov eax, ebx
xor edx, edx
call fcn.004a6378
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004b2ef4
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004a9128
mov eax, dword [ebp - 4]
cmp word [eax + 0x6e], 0
je 0x4b0361
lea edx, [ebp - 0x21]
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x70]
call dword [ebx + 0x6c]
cmp byte [ebp - 0x21], 0
je 0x4b0376
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
jmp 0x4b0400
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x318]
test ebx, ebx
je 0x4b0400
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
je 0x4b0400
cmp byte [ebx + 0x394], 0
je 0x4b0400
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4b0400
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4b0400
cmp byte [ebx + 0x336], 0
je 0x4b032a
jmp 0x4b0400
lea ecx, [ebp - 0x20]
mov eax, ebx
xor edx, edx
call fcn.004a6378
mov eax, dword [ebp - 0x20]
mov edx, dword [0x581dd8]
mov edx, dword [edx]
call fcn.00403f98
je 0x4b042e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4b042e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4b042e
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004b2ef4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x318]
test ebx, ebx
je 0x4b042e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4b042e
cmp byte [ebx + 0x336], 0
jne 0x4b042e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
je 0x4b03bf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x335], 0
jne 0x4b04e1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x336], 0
jne 0x4b04e1
mov eax, dword [ebp - 4]
cmp word [eax + 0x306], 0xc7
jge 0x4b04e1
mov edx, 0x2710
mov eax, dword [ebp - 4]
call fcn.004a7540
mov eax, dword [ebp - 4]
mov byte [eax + 0x334], 1
xor edx, edx
push ebp
push 0x4b04da
push dword fs:[edx]
mov dword fs:[edx], esp
jmp 0x4b0499
push 0
lea eax, [ebp - 0x2c]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004b24a4
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x306]
cmp ax, 0xc7
jge 0x4b04ba
test ax, ax
je 0x4b04ba
mov eax, dword [ebp - 4]
cmp byte [eax + 0x394], 0
jne 0x4b0487
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b04e1
mov eax, dword [ebp - 4]
call fcn.004a7590
mov eax, dword [ebp - 4]
mov byte [eax + 0x334], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b05f5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
je 0x4b0588
mov eax, dword [ebp - 4]
cmp word [eax + 0x306], 0xc8
jge 0x4b051d
push 1
mov cl, 1
mov edx, 0x4b06a0
mov eax, dword [ebp - 4]
call fcn.004b22b0
mov eax, dword [ebp - 4]
cmp word [eax + 0x40e], 0
je 0x4b053c
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x410]
call dword [ebx + 0x40c]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x318], 0
je 0x4b0588
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
cmp byte [eax + 0x335], 0
jne 0x4b0563
cmp byte [eax + 0x336], 0
je 0x4b056d
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x318], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f0], 0
jne 0x4b05ea
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x335]
test al, al
jne 0x4b05ad
mov edx, dword [ebp - 4]
cmp byte [edx + 0x39a], 0
jne 0x4b05c9
test al, al
je 0x4b05bd
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 2
jmp 0x4b05ea
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f0], 1
jmp 0x4b05ea
mov eax, dword [ebp - 4]
cmp word [eax + 0x3e6], 0
je 0x4b05ea
mov ebx, dword [ebp - 4]
mov cl, 0xb
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 0x4b0627
lea eax, [ebp - 0x2c]
call fcn.00403c0c
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00403c30
lea eax, [ebp - 8]
call fcn.00403c0c
ret