Function at 0x422ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42e8f6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4441b4]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4441b4]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xc4]
push pe_nt_image_headers32
push 0xf
mov ebp, ecx
mov dword [esp + 0x2c], ebx
call fcn.0041f130
mov cl, byte [ebx + 0x30]
push 0x100
mov dword [esp + 0x20], eax
add eax, 8
push 0
push eax
mov byte [esp + 0x2f], cl
call sub.MSVCR90.dll_memset
mov esi, dword [ebx + 0xc]
add esp, 0xc
cmp esi, dword [ebx + 0x10]
jbe 0x422b50
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0xc], eax
jbe 0x422b64
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebx]
mov dword [esp + 0x28], edx
lea ebx, [ebx]
test edi, edi
je 0x422b7a
cmp edi, dword [esp + 0x28]
je 0x422b80
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x18]
je 0x422c1e
xor ebx, ebx
cmp byte [ebp + 0xc], 0
je 0x422ba7
mov eax, dword [ebp + 4]
mov edx, dword [eax]
movzx ecx, bl
mov al, byte [edx + ecx + 0x104]
mov byte [esp + 0x14], al
jmp 0x422bab
mov byte [esp + 0x14], bl
test edi, edi
jne 0x422c16
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x422bc2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp byte [ebp + 0xc], 0
mov al, byte [esi]
je 0x422bd9
mov ecx, dword [ebp + 4]
movzx edx, al
mov eax, dword [ecx]
mov al, byte [eax + edx + 0x104]
cmp byte [esp + 0x14], al
jne 0x422bea
mov eax, dword [esp + 0x1c]
add eax, 8
mov byte [eax + ebx], 1
inc ebx
cmp ebx, 0x100
jb 0x422b8c
test edi, edi
jne 0x422c1a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x422c0a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x24]
add esi, 2
jmp 0x422b70
mov eax, dword [edi]
jmp 0x422bb7
mov eax, dword [edi]
jmp 0x422bff
mov esi, dword [ebx + 0x24]
cmp esi, dword [ebx + 0x28]
jbe 0x422c2c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x28]
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x24], eax
jbe 0x422c45
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x38], ecx
lea esp, [esp]
test edi, edi
je 0x422c5a
cmp edi, dword [esp + 0x38]
je 0x422c60
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x28]
je 0x422ead
test edi, edi
jne 0x422e39
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x422c85
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp byte [ebp + 0xc], 0
mov al, byte [esi]
mov ecx, dword [ebp + 4]
je 0x422c9c
mov ecx, dword [ecx]
movzx edx, al
mov al, byte [edx + ecx + 0x104]
mov byte [esp + 0x14], al
test edi, edi
jne 0x422e40
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x422cbb
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add esi, 2
test edi, edi
jne 0x422e47
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x422cd9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp byte [ebp + 0xc], 0
mov bl, byte [esi]
mov eax, dword [ebp + 4]
je 0x422cf0
mov eax, dword [eax]
movzx ecx, bl
mov bl, byte [ecx + eax + 0x104]
test edi, edi
jne 0x422e4e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x422d0b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp]
mov al, byte [esp + 0x14]
add esi, 2
test dword [edx + 8], 0x200000
je 0x422e55
lea ecx, [esp + 0x19]
push ecx
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x1c]
mov byte [esp + 0x1c], al
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x25], 0
call fcn.0041be60
lea ecx, [esp + 0x19]
push ecx
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0xc8], 0
mov byte [esp + 0x24], bl
call fcn.0041be60
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0xc4], 1
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x422e7f
mov edi, dword [esp + 0x1c]
xor ebx, ebx
lea eax, [esp + 0x19]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x24], bl
call fcn.0041be60
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0xc4], 2
call dword [0x433398]
add esp, 8
test al, al
je 0x422dea
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x44]
push eax
call dword [0x433398]
add esp, 8
test al, al
je 0x422dea
mov byte [edi + ebx + 8], 1
lea ecx, [esp + 0x40]
mov byte [esp + 0xbc], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
inc ebx
cmp ebx, 0x100
jb 0x422d94
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
jmp 0x422c50
mov eax, dword [edi]
jmp 0x422c7a
mov eax, dword [edi]
jmp 0x422cb0
mov eax, dword [edi]
jmp 0x422cce
mov eax, dword [edi]
jmp 0x422d00
cmp bl, al
jb 0x422ea6
mov edx, dword [esp + 0x1c]
movzx eax, al
movzx ecx, bl
sub ecx, eax
inc ecx
push ecx
lea eax, [eax + edx + 8]
push 1
push eax
call sub.MSVCR90.dll_memset
mov ebx, dword [esp + 0x30]
add esp, 0xc
jmp 0x422c50
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x423157
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, dword [ebx + 0x34]
test eax, 0x100000
je 0x422ed6
mov eax, dword [ebp + 0x30]
mov edx, eax
and edx, ecx
cmp edx, eax
je 0x422ed3
mov eax, dword [ebp + 0x34]
mov edx, eax
and edx, ecx
cmp edx, eax
jne 0x422ed6
or ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x422f21
mov esi, ecx
xor eax, eax
and esi, 0x3ff
mov edx, dword [ebp + 4]
test esi, esi
je 0x422f02
mov edx, dword [edx]
movzx edi, al
movzx edx, word [edx + edi*2 + 0x204]
and edx, ecx
test edx, 0x3ff
jne 0x422f0e
test ecx, 0x400
je 0x422f19
cmp al, 0x5f
jne 0x422f19
mov edx, dword [esp + 0x1c]
add edx, 8
mov byte [edx + eax], 1
inc eax
cmp eax, 0x100
jb 0x422ee4
mov eax, dword [ebp]
test dword [eax + 8], 0x100000
mov ecx, dword [ebx + 0x38]
je 0x422f49
mov eax, dword [ebp + 0x30]
mov edx, eax
and edx, ecx
cmp edx, eax
je 0x422f46
mov eax, dword [ebp + 0x34]
mov edx, eax
and edx, ecx
cmp edx, eax
jne 0x422f49
or ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x422f94
mov esi, ecx
xor eax, eax
and esi, 0x3ff
mov edx, dword [ebp + 4]
test esi, esi
je 0x422f75
mov edx, dword [edx]
movzx edi, al
movzx edx, word [edx + edi*2 + 0x204]
and edx, ecx
test edx, 0x3ff
jne 0x422f8c
test ecx, 0x400
je 0x422f81
cmp al, 0x5f
je 0x422f8c
mov edx, dword [esp + 0x1c]
add edx, 8
mov byte [edx + eax], 1
inc eax
cmp eax, 0x100
jb 0x422f57
mov esi, dword [ebx + 0x4c]
cmp esi, dword [ebx + 0x50]
jbe 0x422fa2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x50]
mov edi, dword [ebx + 0x40]
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x4c], eax
jbe 0x422fbb
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x30], eax
test edi, edi
je 0x422fcc
cmp edi, dword [esp + 0x30]
je 0x422fd6
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call ebx
jmp 0x422fdc
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x28]
je 0x423132
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0xbc], 3
test edi, edi
jne 0x423107
call ebx
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x42300e
call ebx
test edi, edi
jne 0x42310e
call ebx
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x423021
call ebx
lea ecx, [esi + 1]
push ecx
mov ecx, dword [ebp + 4]
push esi
lea edx, [esp + 0x64]
push edx
call fcn.0041f070
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 4
call dword [0x43317c]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xbc], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x54], 0
je 0x423119
xor ebx, ebx
lea eax, [esp + 0x15]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x9c]
push edx
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0
call fcn.0041f070
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xc4], 5
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
je 0x4230b5
mov eax, dword [esp + 0x1c]
add eax, 8
mov byte [eax + ebx], 1
lea ecx, [esp + 0x94]
mov byte [esp + 0xbc], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
inc ebx
cmp ebx, 0x100
jb 0x423065
test edi, edi
jne 0x423115
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4230ea
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x40]
add esi, 2
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x422fc2
mov eax, dword [edi]
jmp 0x423007
mov eax, dword [edi]
jmp 0x42301a
mov eax, dword [edi]
jmp 0x4230df
lea ecx, [esp + 0x40]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x423157
cmp byte [esp + 0x23], 0
je 0x423153
mov eax, dword [esp + 0x1c]
add eax, 8
mov ecx, 0x100
cmp byte [eax], 0
sete dl
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x423145
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0041a1d4
add esp, 0xac
ret 8