Function at 0x4227d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468138
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 0x422838
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 0x422852
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], 0x403060
test al, al
je 0x4228b3
xor eax, eax
mov ax, word [ebx + 0x38]
sub eax, 0x14c
je 0x422883
sub eax, 0x38
jne 0x42288d
mov dword [0x482850], 0x402f50
jmp 0x42288d
mov dword [0x482850], 0x402f10
mov al, byte [0x48289e]
test al, al
jne 0x4228a5
mov al, byte [esp + 0x50]
mov byte [0x48289e], 0
test al, al
jne 0x4228ac
mov byte [0x48289e], 1
mov byte [0x469378], 0
mov al, byte [0x481160]
test al, al
je 0x4228d4
mov al, byte [0x481161]
test al, al
je 0x4228d4
mov al, byte [esp + 0x7c]
test al, al
sete dl
mov byte [0x48289e], dl
push esi
push edi
mov ecx, 8
xor eax, eax
mov edi, 0x482854
mov esi, dword [esp + 0x74]
rep stosd dword es:[edi], eax
mov edi, 0x402af8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x402af8
push esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x42291c
mov edi, 0x402af8
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.004203c0
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x3c]
push eax
call fcn.004206b0
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x10]
test al, al
je 0x422979
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.00422770
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.00420f80
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 0x4229ba
call fcn.00431700
jmp 0x4229c6
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.004226b0
mov ecx, dword [0x482850]
mov dword [esp + 0x64], eax
mov al, byte [0x496944]
test al, 1
jne 0x422a14
or al, 1
mov byte [0x496944], al
mov eax, dword [ecx + 4]
mov dword [0x496948], eax
jmp 0x422a19
mov eax, dword [0x496948]
cmp eax, ebp
mov esi, 1
jle 0x422ad9
mov edi, dword [ecx]
mov ebp, eax
mov eax, dword [edi]
lea eax, [eax + eax*4]
shl eax, 2
mov ecx, dword [eax + 0x402c4c]
test cl, 0x10
jne 0x422a66
test cl, 0x40
je 0x422a4a
mov dl, byte [0x482810]
jmp 0x422a55
test cl, 0x20
je 0x422a6e
mov dl, byte [0x482811]
test dl, dl
je 0x422acf
test cl, 1
je 0x422abf
mov cl, byte [esp + 0x58]
test cl, cl
je 0x422acf
mov ecx, dword [eax + 0x402c48]
jmp 0x422acd
test cl, 1
je 0x422a83
mov cl, byte [esp + 0x58]
test cl, cl
je 0x422ac7
mov ecx, dword [eax + 0x402c48]
jmp 0x422acd
test cl, 2
je 0x422a9a
mov cl, byte [0x48289e]
test cl, cl
jne 0x422ac7
mov ecx, dword [eax + 0x402c48]
jmp 0x422acd
test cl, 4
je 0x422ab2
mov cl, byte [esp + 0x84]
test cl, cl
jne 0x422ac7
mov ecx, dword [eax + 0x402c48]
jmp 0x422acd
test cl, 8
je 0x422acf
mov cl, byte [esp + 0x10]
test cl, cl
je 0x422ac7
mov ecx, dword [eax + 0x402c48]
jmp 0x422acd
mov ecx, dword [eax + 0x402c50]
add esi, ecx
add edi, 4
dec ebp
jne 0x422a2a
mov ecx, dword [esp + 0x58]
test cl, cl
je 0x422af0
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.00419560
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.00421080
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.0040bd40
mov eax, dword [esp + 0x68]
cmp eax, edi
je 0x422bce
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.00421630
mov edi, dword [esp + 0x60]
test edi, edi
je 0x422c3a
push edi
call fcn.00451ba0
jmp 0x422c3c
xor eax, eax
mov esi, dword [esp + 0x80]
test edi, edi
mov dword [esi], eax
je 0x422c55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x422c57
xor ecx, ecx
mov dword [esi + 4], ecx
mov al, byte [0x481194]
mov edi, dword [ebx + 0x5c]
test al, al
je 0x422c6b
call fcn.0040cbc0
mov edx, dword [0x469524]
mov eax, dword [edx + edi*4]
test byte [eax + 4], 8
je 0x422c7f
mov eax, dword [eax + 0x1c]
jmp 0x422c85
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x422c98
push eax
call fcn.00451ba0
jmp 0x422c9a
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 eax, dword [esp + 0x30]
mov word [esi + 0x1c], cx
lea edi, [esi + 0x1e]
mov ecx, 8
mov esi, 0x482854
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0x5c]
lea esi, [eax + eax*8]
mov al, byte [0x481194]
shl esi, 1
test al, al
je 0x422cf4
call fcn.0040cbc0
mov edx, dword [0x469524]
push esi
push 0x4823d8
mov eax, dword [edx + edi*4]
push eax
test byte [eax + 4], 8
je 0x422d11
call fcn.0040c870
jmp 0x422d16
call fcn.0040bee0
mov al, byte [0x481194]
mov ebx, dword [ebx + 0x5c]
pop edi
pop esi
test al, al
je 0x422d29
call fcn.0040cbc0
mov eax, dword [0x469524]
mov eax, dword [eax + ebx*4]
test byte [eax + 4], 8
je 0x422d45
mov ecx, dword [esp + 0x54]
push ecx
push ebp
push eax
call fcn.0040c870
jmp 0x422d51
mov edx, dword [esp + 0x54]
push edx
push ebp
push eax
call fcn.0040bee0
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 0x422d7b
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