Function at 0x4227f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42d4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x43e4a0]
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x30], eax
push edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov edi, dword [esp + 0x48]
mov ecx, edi
mov dword [esp + 0x40], ebp
call fcn.00425e70
cmp word [eax], 5
je 0x42288e
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
push ecx
push str._d:
lea edx, [esp + 0x30]
push 0xa
push edx
call dword [sym.imp.MSVCR71.dll__snprintf]
mov esi, dword [esp + 0x6c]
add esp, 0x10
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call dword [0x42e160]
push str.require_for
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4228e7
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
or eax, 0xffffffff
jmp 0x422c72
mov ecx, edi
call fcn.00425e70
cmp word [eax], 0x2716
je 0x4228ef
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
push edx
push str._d:
lea eax, [esp + 0x30]
push 0xa
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
mov esi, dword [esp + 0x6c]
add esp, 0x10
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [0x42e160]
push 0x435cc0
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4228e7
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
or eax, 0xffffffff
jmp 0x422c72
push ebx
mov ecx, edi
call fcn.00426400
cmp ax, 0x271e
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
je 0x422926
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
push edx
push ebx
push eax
push esi
push ecx
mov ecx, dword [esp + 0x24]
push edi
call fcn.00422470
mov ebp, eax
test ebp, ebp
jle 0x42296a
mov ecx, edi
call fcn.00425e70
cmp word [eax], 0x271e
je 0x42297b
mov edx, dword [ebx]
push edx
push str._d:
lea eax, [esp + 0x34]
push 0xa
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
mov esi, dword [esp + 0x70]
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [0x42e160]
push str.require__
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [esp + 0x14]
call fcn.0041f960
or eax, 0xffffffff
jmp 0x422c71
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov byte [esp + 0x30], 0x19
mov byte [esp + 0x38], 1
call fcn.0041f990
mov eax, dword [esi + 4]
test eax, eax
jne 0x42299e
mov dword [esp + 0x24], eax
jmp 0x4229b7
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0x14
call fcn.0041f990
add ebp, 2
mov ecx, edi
mov dword [esp + 0x4c], ebp
call fcn.00426400
cmp ax, 0x271e
mov ebp, dword [esp + 0x60]
je 0x422a03
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
push edi
call fcn.00421c90
test eax, eax
jle 0x42296a
mov ecx, edi
call fcn.00425e70
cmp word [eax], 0x271e
je 0x422a42
mov ecx, dword [ebx]
push ecx
push str._d:
lea edx, [esp + 0x34]
push 0xa
push edx
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call dword [0x42e160]
push str.require__
mov ecx, ebp
jmp 0x422964
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x54], ebp
call fcn.00426400
cmp ax, 0x271e
je 0x422a7a
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push edx
push esi
push eax
push edi
call fcn.00422470
mov ebp, eax
test ebp, ebp
jle 0x42296a
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 4]
add eax, ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
lea eax, [eax + eax*2 - 3]
shl eax, 2
lea ebp, [ecx + eax + 0xc]
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.0041d650
lea ecx, [esp + 0x14]
mov dword [ebp + 4], eax
call fcn.0041d650
test eax, eax
jbe 0x422b5b
xor ebx, ebx
mov dword [esp + 0x54], ebx
jmp 0x422ac0
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x422afe
mov ecx, dword [esp + 0x1c]
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x422afe
mov edx, dword [esp + 0x54]
add ebp, edx
push ebp
mov ecx, esi
call fcn.0041f990
mov eax, dword [esp + 0x54]
inc ebx
add eax, 0xc
mov dword [esp + 0x54], eax
jmp 0x422ac0
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x30], 0x16
call fcn.0041f990
mov ecx, esi
call fcn.0041d650
mov ebp, eax
mov eax, dword [esp + 0x18]
dec ebp
test eax, eax
jne 0x422b33
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x5c]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x4c], edx
jmp 0x422b5f
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x5c]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esp + 0x4c]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + eax + 1]
mov dword [esp + 0x4c], edx
jmp 0x422b5f
mov ebp, dword [esp + 0x54]
mov ecx, edi
call fcn.00425e70
cmp word [eax], 0x2717
je 0x422ba0
mov eax, dword [ebx]
push eax
push str._d:
lea ecx, [esp + 0x34]
push 0xa
push ecx
call dword [sym.imp.MSVCR71.dll__snprintf]
mov esi, dword [esp + 0x70]
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call dword [0x42e160]
push 0x435b00
jmp 0x422962
mov ecx, edi
call fcn.00426400
cmp ax, 0x273d
jne 0x422bc9
lea ecx, [ecx]
mov edx, dword [ebx]
inc edx
mov ecx, edi
mov dword [ebx], edx
call fcn.00425e70
mov ecx, edi
call fcn.00426400
cmp ax, 0x273d
je 0x422bb0
mov ecx, edi
call fcn.00426400
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
cmp ax, 0x271a
mov eax, dword [esp + 0x60]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edx
push edi
jne 0x422bf3
call fcn.004232f0
jmp 0x422bf8
call fcn.00422f50
mov ebx, eax
test ebx, ebx
jl 0x42296a
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
inc eax
push ecx
mov ecx, esi
mov byte [esp + 0x30], 0x14
mov dword [esp + 0x34], eax
call fcn.0041f990
test ebp, ebp
je 0x422c34
mov eax, dword [esi + 4]
lea edx, [ebp + ebp*2]
mov ecx, esi
lea edi, [eax + edx*4]
call fcn.0041d650
mov dword [edi + 4], eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov byte [esp + 0x30], 0x1a
mov dword [esp + 0x34], 1
call fcn.0041f990
mov eax, dword [esp + 0x28]
mov edi, dword [esi + 4]
mov ecx, esi
add edi, eax
call fcn.0041d650
lea ecx, [esp + 0x14]
mov dword [edi + 4], eax
call fcn.0041f960
mov edx, dword [esp + 0x4c]
lea eax, [ebx + edx + 2]
pop ebx
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2c]
pop ebp
call fcn.0042b32d
add esp, 0x38
ret 0x18