Function at 0x422b40
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4527c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x467340]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov eax, dword [0x469ba8]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x469ba8
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
call edx
add eax, 0x10
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], esi
mov eax, dword [0x469ba8]
mov edx, dword [eax + 0xc]
mov ecx, 0x469ba8
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
add eax, 0x18
mov byte [esp + 0x38], 1
mov dword [esp + 0x20], ebx
call fcn.00423490
cmp ebp, esi
je 0x422f22
xor edi, edi
xor eax, eax
mov dword [esp + 0x2c], eax
test edi, edi
je 0x422be4
cmp word [eax + ebp - 2], 0
je 0x422f1a
movzx eax, word [eax + ebp]
cmp esi, 6
ja case.default.0x422bf1
jmp dword [esi*4 + 0x422f8c]
mov dword [esp + 0x20], 0
movzx ecx, ax
test ecx, ecx
je 0x422c11
cmp ecx, 9
je 0x422c11
cmp ecx, 0x20
jne 0x422c24
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
inc edi
mov esi, 1
add eax, 2
jmp 0x422bd0
mov edx, ecx
sub edx, 0x2d
je 0x422c30
sub edx, 2
jne 0x422c43
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
inc edi
mov esi, 3
add eax, 2
jmp 0x422bd0
lea edx, [eax - 0x61]
cmp dx, 0x19
jbe 0x422c55
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x422c6e
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], edi
mov esi, 2
inc edi
add eax, esi
jmp 0x422bd0
cmp ecx, 0x22
jne 0x422f22
mov eax, dword [esp + 0x2c]
mov esi, 1
inc edi
mov dword [esp + 0x20], esi
add eax, 2
mov ebx, esi
jmp 0x422bd0
movzx ecx, ax
test ecx, ecx
je 0x422ca0
cmp ecx, 9
je 0x422ca0
cmp ecx, 0x20
jne 0x422d13
mov eax, dword [esp + 0x24]
mov ebx, edi
sub ebx, eax
lea eax, [ebp + eax*2]
push eax
lea eax, [esp + 0x1c]
call fcn.00412770
mov eax, dword [esp + 0x18]
test eax, eax
je 0x422eef
cmp word [eax], 0
je 0x422eef
mov esi, dword [esp + 0x40]
mov ecx, dword [esi + 4]
push ecx
push eax
mov ecx, esi
call fcn.00423600
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x422cfb
mov ebx, dword [esp + 0x20]
mov dword [ecx], eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
xor esi, esi
inc edi
add eax, 2
jmp 0x422bd0
mov ebx, dword [esp + 0x20]
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
xor esi, esi
inc edi
add eax, 2
jmp 0x422bd0
lea edx, [eax - 0x61]
cmp dx, 0x19
jbe 0x422d25
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x422d3a
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov esi, 2
inc edi
add eax, esi
jmp 0x422bd0
cmp ecx, 0x22
jne 0x422f22
mov eax, dword [esp + 0x24]
mov ebx, edi
sub ebx, eax
lea eax, [ebp + eax*2]
push eax
lea eax, [esp + 0x1c]
call fcn.00412770
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
call fcn.004230d0
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor esi, esi
inc edi
add eax, 2
jmp 0x422bd0
movzx eax, ax
test eax, eax
je 0x422f22
cmp eax, 9
je 0x422f22
cmp eax, 0x20
je 0x422f22
sub eax, 0x2d
je 0x422da0
sub eax, 2
jne 0x422db6
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
inc edi
mov esi, 3
add eax, 2
jmp 0x422bd0
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
inc edi
mov esi, 4
add eax, 2
jmp 0x422bd0
movzx eax, ax
test eax, eax
je 0x422de1
cmp eax, 9
je 0x422de1
cmp eax, 0x20
jne 0x422df0
mov eax, dword [esp + 0x1c]
mov ebx, edi
lea ecx, [ebp + eax*2]
sub ebx, eax
push ecx
jmp 0x422e38
cmp eax, 0x3a
je 0x422dfa
cmp eax, 0x3d
jne 0x422e26
mov eax, dword [esp + 0x1c]
lea edx, [ebp + eax*2]
mov ebx, edi
sub ebx, eax
push edx
lea eax, [esp + 0x48]
call fcn.00412770
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
inc edi
mov esi, 5
add eax, 2
jmp 0x422bd0
cmp eax, 0x22
jne 0x422dba
mov eax, dword [esp + 0x1c]
mov ebx, edi
sub ebx, eax
lea eax, [ebp + eax*2]
push eax
lea eax, [esp + 0x48]
call fcn.00412770
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
call fcn.00422fb0
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor esi, esi
inc edi
add eax, 2
jmp 0x422bd0
movzx eax, ax
test eax, eax
je 0x422e72
cmp eax, 9
je 0x422e72
cmp eax, 0x20
jne 0x422e90
test ebx, ebx
je 0x422e41
mov dword [esp + 0x14], edi
mov esi, 6
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
inc edi
add eax, 2
jmp 0x422bd0
cmp eax, 0x22
jne 0x422e76
lea esi, [eax - 0x1d]
mov eax, dword [esp + 0x2c]
lea ecx, [edi + 1]
mov dword [esp + 0x20], 1
mov ebx, dword [esp + 0x20]
inc edi
mov dword [esp + 0x14], ecx
add eax, 2
jmp 0x422bd0
movzx eax, ax
test eax, eax
je 0x422ec9
cmp eax, 9
je 0x422ec9
cmp eax, 0x20
jne 0x422f02
test ebx, ebx
jne 0x422f02
mov eax, dword [esp + 0x14]
mov ebx, edi
lea edx, [ebp + eax*2]
sub ebx, eax
push edx
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
add esi, 0x18
call fcn.00423430
call fcn.00412770
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor esi, esi
inc edi
add eax, 2
jmp 0x422bd0
cmp eax, 0x22
jne 0x422e7a
mov eax, dword [esp + 0x14]
mov ebx, edi
sub ebx, eax
lea eax, [ebp + eax*2]
push eax
jmp 0x422eda
mov dword [esp + 0x28], 1
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422f47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422f6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8