Function at 0x422d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e9730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.004be1a0
push 0
push 0
push ecx
mov dword [esp + 0x2c], 0
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x30], 1
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x50fb4c
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x30], 0
call fcn.004caf10
mov ecx, esi
call fcn.00422b20
test ax, ax
jle 0x422f65
mov al, byte [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push 0x50fdb0
mov ecx, esi
mov byte [0x50fdb7], al
call fcn.0041b6a0
test ax, ax
jg 0x422e0a
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x50f9bc
jmp 0x422f51
xor edi, edi
lea edx, [esp + 0xc]
mov ecx, esi
push edx
push 0x50fda8
call fcn.0041b6a0
test ax, ax
jle 0x422e64
lea ecx, [esp + 0xc]
call fcn.004be660
cmp ax, 7
jg 0x422e37
inc edi
cmp edi, 0xf
jl 0x422e0c
cmp edi, 0xf
jne 0x422e93
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x30], 4
mov ecx, esp
mov dword [esp + 0x3c], esp
jmp 0x422f4a
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x30], 3
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x50f9bc
jmp 0x422f51
mov ax, word [esp + 0x2c]
push 0x50fdc8
mov bx, ax
push 0x50fdbc
sar bx, 8
mov ecx, esi
mov byte [0x50fdc3], bl
mov byte [0x50fdc9], al
call fcn.0041e450
test ax, ax
jg 0x422ee8
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x30], 5
mov ecx, esp
mov dword [esp + 0x3c], esp
jmp 0x422fb0
xor edi, edi
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0x50fda8
call fcn.0041b6a0
test ax, ax
jle 0x422f8d
lea ecx, [esp + 0xc]
call fcn.004be660
cmp ax, 7
jle 0x422f18
cmp edi, 5
jg 0x422f1e
inc edi
cmp edi, 0xf
jl 0x422eea
cmp edi, 0xf
jne 0x422ff3
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x30], 7
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x510100
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x30], 0
call fcn.004caf10
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004be2e0
xor ax, ax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f634
call fcn.004be240
push ecx
mov byte [esp + 0x30], 6
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x50f9bc
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x30], 0
call fcn.004caf10
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004be2e0
xor ax, ax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
mov cl, byte [esp + 0x2c]
push 0x50fdd8
mov byte [0x50fdd9], cl
push 0x50fdcc
mov ecx, esi
mov byte [0x50fdd3], bl
call fcn.0041e450
lea edx, [esp + 0xc]
mov ecx, esi
push edx
push 0x50fdfc
call fcn.0041b6a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004be2e0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8