Function at 0x422630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x467c48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x48], ebp
shr eax, 1
and al, 1
mov dword [esp + 0xc], ebp
mov byte [esp + 8], al
mov al, byte [0x482812]
test al, 1
jne 0x422698
or al, 1
mov byte [0x482812], al
mov ecx, dword [ebx + 8]
mov dl, byte [ecx + 0x12e]
mov byte [0x482811], dl
test al, 2
jne 0x4226b2
or al, 2
mov byte [0x482812], al
mov eax, dword [ebx + 8]
mov cl, byte [eax + 0x12f]
mov byte [0x482810], cl
mov al, byte [0x469378]
mov dword [0x4690d8], 0x403058
test al, al
je 0x422713
xor eax, eax
mov ax, word [ebx + 0x38]
sub eax, 0x14c
je 0x4226e3
sub eax, 0x38
jne 0x4226ed
mov dword [0x482850], 0x402f48
jmp 0x4226ed
mov dword [0x482850], 0x402f08
mov al, byte [0x48289e]
test al, al
jne 0x422705
mov al, byte [esp + 0x50]
mov byte [0x48289e], 0
test al, al
jne 0x42270c
mov byte [0x48289e], 1
mov byte [0x469378], 0
mov al, byte [0x481160]
test al, al
je 0x422734
mov al, byte [0x481161]
test al, al
je 0x422734
mov al, byte [esp + 0x7c]
test al, al
sete dl
mov byte [0x48289e], dl
push esi
push edi
mov ecx, 7
xor eax, eax
mov edi, 0x482854
mov esi, dword [esp + 0x74]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x402af0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x402af0
push esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x422780
mov edi, 0x402af0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
mov dword [esp + 0x74], esi
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x84]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push eax
push ecx
push edx
call fcn.00420240
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x3c]
push eax
call fcn.00420530
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x10]
test al, al
je 0x4227dd
mov eax, dword [ebx + 0x3c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004225d0
mov al, byte [0x482811]
mov cl, byte [0x482810]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [ebx + 0x40]
push edx
push eax
push ecx
push esi
call fcn.00420de0
mov esi, eax
push esi
push 1
mov dword [esp + 0x64], esi
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
cmp eax, ebp
jne 0x42281e
call fcn.004314c0
jmp 0x42282a
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov edx, dword [esp + 0x34]
mov dword [edx], esi
mov al, byte [0x482811]
mov cl, byte [0x482810]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push eax
push ecx
call fcn.00422510
mov ecx, dword [0x482850]
mov dword [esp + 0x64], eax
mov al, byte [0x496944]
test al, 1
jne 0x422878
or al, 1
mov byte [0x496944], al
mov eax, dword [ecx + 4]
mov dword [0x496948], eax
jmp 0x42287d
mov eax, dword [0x496948]
cmp eax, ebp
mov esi, 1
jle 0x42293d
mov edi, dword [ecx]
mov ebp, eax
mov eax, dword [edi]
lea eax, [eax + eax*4]
shl eax, 2
mov ecx, dword [eax + 0x402c44]
test cl, 0x10
jne 0x4228ca
test cl, 0x40
je 0x4228ae
mov dl, byte [0x482810]
jmp 0x4228b9
test cl, 0x20
je 0x4228d2
mov dl, byte [0x482811]
test dl, dl
je 0x422933
test cl, 1
je 0x422923
mov cl, byte [esp + 0x58]
test cl, cl
je 0x422933
mov ecx, dword [eax + 0x402c40]
jmp 0x422931
test cl, 1
je 0x4228e7
mov cl, byte [esp + 0x58]
test cl, cl
je 0x42292b
mov ecx, dword [eax + 0x402c40]
jmp 0x422931
test cl, 2
je 0x4228fe
mov cl, byte [0x48289e]
test cl, cl
jne 0x42292b
mov ecx, dword [eax + 0x402c40]
jmp 0x422931
test cl, 4
je 0x422916
mov cl, byte [esp + 0x84]
test cl, cl
jne 0x42292b
mov ecx, dword [eax + 0x402c40]
jmp 0x422931
test cl, 8
je 0x422933
mov cl, byte [esp + 0x10]
test cl, cl
je 0x42292b
mov ecx, dword [eax + 0x402c40]
jmp 0x422931
mov ecx, dword [eax + 0x402c48]
add esi, ecx
add edi, 4
dec ebp
jne 0x42288e
mov ecx, dword [esp + 0x58]
test cl, cl
je 0x422954
movzx dx, byte [ebx + 0x64]
add edx, 7
mov word [0x469320], dx
mov eax, dword [esp + 0x64]
and eax, 0xffff
lea eax, [eax + eax*4]
lea edx, [eax*8 + 0x14]
mov eax, dword [esp + 0x24]
and eax, 0xff
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
add eax, 0x1e
push eax
mov eax, dword [esp + 0x1c]
and edx, 0xff
and eax, 0xff
add edx, 0x1e
add eax, 0x1e
push edx
push ecx
push eax
mov ecx, ebx
call fcn.004193f0
mov cl, byte [0x482811]
mov dl, byte [0x482810]
mov edi, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x9c]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x94]
push ecx
push edx
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0xa4]
and eax, 0xffff
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x5c]
push ecx
push edx
push ebp
push eax
call fcn.00420ee0
mov eax, dword [ebx + 0x5c]
lea ecx, [esp + 0x70]
xor edi, edi
push ecx
push 2
push edi
push eax
mov dword [esp + 0x80], edi
call fcn.0040bbd0
mov eax, dword [esp + 0x68]
cmp eax, edi
je 0x422a32
mov dx, word [esp + 0x64]
mov word [eax + 0x10], di
mov word [eax + 2], dx
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov dl, byte [0x482811]
mov ecx, 0x10e
xor eax, eax
mov edi, 0x4823d8
rep stosd dword es:[edi], eax
mov ax, word [ebx + 0x38]
mov ecx, dword [esp + 0x58]
push eax
mov al, byte [0x482810]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [ebx + 0x30]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [ebx + 0x3c]
push ebp
mov ebp, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x94]
push ecx
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
push 0x4823d8
push ebp
call fcn.00421490
mov edi, dword [esp + 0x60]
test edi, edi
je 0x422a9e
push edi
call fcn.00451750
jmp 0x422aa0
xor eax, eax
mov esi, dword [esp + 0x80]
test edi, edi
mov dword [esi], eax
je 0x422ab9
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x422abb
xor ecx, ecx
mov dword [esi + 4], ecx
mov al, byte [0x481194]
mov edi, dword [ebx + 0x5c]
test al, al
je 0x422acf
call fcn.0040ca50
mov edx, dword [0x469524]
mov eax, dword [edx + edi*4]
test byte [eax + 4], 8
je 0x422ae3
mov eax, dword [eax + 0x1c]
jmp 0x422ae9
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x422afc
push eax
call fcn.00451750
jmp 0x422afe
xor eax, eax
mov cl, byte [esp + 0x18]
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], cl
mov dx, word [ebx + 0x38]
mov cx, word [esp + 0x1c]
mov word [esi + 0x16], dx
mov dl, byte [esp + 0x84]
xor eax, eax
test dl, dl
sete al
mov byte [esi + 0x18], 0
mov word [esi + 0x1a], ax
mov word [esi + 0x1c], cx
lea edi, [esi + 0x1e]
mov ecx, 7
mov esi, 0x482854
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
movsw word es:[edi], word [esi]
mov edi, dword [ebx + 0x5c]
lea esi, [eax + eax*8]
mov al, byte [0x481194]
shl esi, 1
test al, al
je 0x422b5a
call fcn.0040ca50
mov edx, dword [0x469524]
push esi
push 0x4823d8
mov eax, dword [edx + edi*4]
push eax
test byte [eax + 4], 8
je 0x422b77
call fcn.0040c700
jmp 0x422b7c
call fcn.0040bd70
mov al, byte [0x481194]
mov ebx, dword [ebx + 0x5c]
pop edi
pop esi
test al, al
je 0x422b8f
call fcn.0040ca50
mov eax, dword [0x469524]
mov eax, dword [eax + ebx*4]
test byte [eax + 4], 8
je 0x422bab
mov ecx, dword [esp + 0x54]
push ecx
push ebp
push eax
call fcn.0040c700
jmp 0x422bb7
mov edx, dword [esp + 0x54]
push edx
push ebp
push eax
call fcn.0040bd70
mov eax, dword [esp + 0x18]
mov byte [0x48289e], 1
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esp + 0x48], 0xffffffff
test ebp, ebp
je 0x422be1
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x40]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0x30