Function at 0x10056280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100dc56c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x180]
lea ebp, [esp + 0x14]
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
sub ebp, edi
mov dword [esp + 0x1c], 2
mov ax, word [edi]
test ax, ax
je 0x100562dc
movzx eax, ax
dec eax
push eax
mov ecx, esi
call fcn.100561f0
inc eax
mov dword [edi + ebp], eax
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edi, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x100562c0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x1005631b
mov eax, dword [esi + 0x84]
test eax, eax
je 0x1005631b
mov edi, dword [esp + 0x18c]
mov eax, dword [esp + 0x188]
shl edi, 0x10
mov byte [esp + 0x13], 1
or edi, eax
jmp 0x10056323
mov byte [esp + 0x13], 0
or edi, 0xffffffff
mov dl, byte [esp + 0x14]
mov ax, word [esp + 0x184]
lea ecx, [esp + 0x38]
lea ebp, [esi + 0x18]
push ecx
mov ecx, ebp
mov byte [esp + 0x3c], dl
mov byte [esp + 0x3d], bl
mov word [esp + 0x3e], ax
mov dword [esp + 0x40], edi
mov dword [esp + 0x84], ebp
call fcn.10052440
mov ebp, dword [ebp + 4]
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x10056394
mov cl, byte [eax + 0xc]
mov dl, byte [esp + 0x14]
cmp cl, dl
ja 0x10056394
jb 0x1005638e
mov cl, byte [eax + 0xd]
cmp cl, bl
ja 0x10056394
jb 0x1005638e
mov ecx, dword [eax + 0x10]
cmp ecx, edi
ja 0x10056394
jb 0x1005638e
mov dx, word [esp + 0x184]
cmp dx, word [eax + 0xe]
jb 0x10056394
lea eax, [esp + 0x1c]
jmp 0x1005639c
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x20]
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
je 0x100563ab
add eax, 0x14
jmp 0x10056bf5
push str.Terrain_
lea ecx, [esp + 0xa4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xd8]
test ecx, ecx
mov dword [esp + 0x178], 0
je 0x1005641b
add eax, 0xc4
push 0x100f037c
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.10001500
add esp, 0xc
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x17c], 1
call dword [0x100e80ec]
lea ecx, [esp + 0x84]
mov byte [esp + 0x178], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [sym.imp.OgreMain.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_Ogre::StringConverter::toString_unsigned_int__unsigned_short_int__char__int_]
push 0
push 0x20
push 0
lea ecx, [esp + 0xd4]
push ebx
push ecx
call edi
mov ebp, eax
mov edx, dword [esp + 0x28]
push 0
push 0x20
push 0
push edx
lea eax, [esp + 0x108]
push eax
mov byte [esp + 0x1a0], 2
call edi
push 0x100ecb34
push eax
lea ecx, [esp + 0x7c]
mov bl, 3
push ecx
mov byte [esp + 0x1ac], bl
call fcn.10001500
push ebp
push eax
lea edx, [esp + 0xc0]
push edx
mov byte [esp + 0x1b8], 4
call fcn.10001400
add esp, 0x40
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x17c], 5
call dword [0x100e80ec]
lea ecx, [esp + 0x84]
mov byte [esp + 0x178], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x178], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x178], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xc8]
mov byte [esp + 0x178], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebx, dword [esp + 0x184]
test bx, bx
mov edi, dword [sym.imp.OgreMain.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_Ogre::StringConverter::toString_int__unsigned_short_int__char__int_]
je 0x1005656e
push 0
push 0x20
movzx eax, bx
push 0
push eax
lea ecx, [esp + 0xf4]
push ecx
call edi
push eax
lea edx, [esp + 0xe0]
push 0x100eed04
push edx
mov byte [esp + 0x198], 6
call fcn.10001480
add esp, 0x20
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x17c], 7
call dword [0x100e80ec]
lea ecx, [esp + 0xc8]
mov byte [esp + 0x178], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x178], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x18c]
mov ecx, dword [esi + 4]
cdq
idiv dword [ecx + 8]
push 0
push 0x20
push 0
lea edx, [esp + 0x144]
push eax
push edx
call edi
mov ebp, eax
mov eax, dword [esp + 0x19c]
mov ecx, dword [esi + 4]
cdq
idiv dword [ecx + 8]
push 0
push 0x20
push 0
lea edx, [esp + 0x13c]
mov byte [esp + 0x198], 8
push eax
push edx
call edi
push eax
lea eax, [esp + 0x180]
push str._Lightmap__
push eax
mov byte [esp + 0x1ac], 9
call fcn.10001480
push 0x100edc6c
push eax
lea ecx, [esp + 0x120]
push ecx
mov byte [esp + 0x1b8], 0xa
call fcn.10001500
add esp, 0x40
push ebp
push eax
lea edx, [esp + 0xd0]
push edx
mov byte [esp + 0x184], 0xb
call fcn.10001400
push 0x100f0280
push eax
lea eax, [esp + 0x114]
push eax
mov byte [esp + 0x190], 0xc
call fcn.10001500
add esp, 0x18
lea ecx, [esp + 0xc8]
mov byte [esp + 0x178], 0x12
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x178], 0x11
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x154]
mov byte [esp + 0x178], 0x10
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x11c]
mov byte [esp + 0x178], 0xf
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x138]
mov byte [esp + 0x178], 0xe
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x13]
test al, al
je 0x100566dd
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x88]
push 0x100eed04
push edx
call fcn.10001480
add esp, 0xc
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x17c], 0x13
call dword [0x100e80ec]
lea ecx, [esp + 0x84]
mov byte [esp + 0x178], 0xe
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::MaterialManager____cdecl_Ogre::MaterialManager::getSingleton_void_]
mov edx, dword [eax]
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x78]
push ecx
mov ecx, eax
call dword [edx + 0x44]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x17c], 0x14
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x7c]
test eax, eax
mov byte [esp + 0x178], 0x16
mov dword [esp + 0x74], 0x100ec508
je 0x10056738
dec dword [eax]
mov edx, dword [esp + 0x7c]
cmp dword [edx], 0
jne 0x10056738
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x74]
call dword [eax + 4]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x10056b5e
mov ebp, dword [esp + 0x18]
test ebp, ebp
mov eax, str.TwoLayer
jne 0x10056756
mov eax, str.OneLayer
push eax
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov al, byte [esp + 0x13]
test al, al
mov byte [esp + 0x178], 0x17
je 0x10056786
push str.Lightmap
lea ecx, [esp + 0x88]
call dword [0x100e80f0]
mov edi, dword [esi + 4]
lea ecx, [esp + 0x84]
add edi, 0x188
push ecx
mov ecx, edi
call fcn.1000aab0
cmp eax, dword [edi + 4]
mov dword [esp + 0x20], eax
je 0x100567c6
add eax, 0xc
push eax
lea edx, [esp + 0x88]
push edx
call dword [0x100e80d0]
add esp, 8
test al, al
jne 0x100567c6
lea eax, [esp + 0x20]
jmp 0x100567d1
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x18c]
add eax, 0x188
cmp ecx, edx
jne 0x1005683d
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x13c]
push str.Cant_found_grid_material_template_for_
push edx
call fcn.10001480
push 0x100f0d50
push eax
lea eax, [esp + 0x130]
push eax
mov byte [esp + 0x190], 0x18
call fcn.10001500
add esp, 0x18
push 0x28b
push str..CoreTerrain.cpp
push str.Terrain::_getGridMaterial
push eax
push 7
mov byte [esp + 0x18c], 0x19
call dword [sym.imp.OgreMain.dll_public:_static_void___cdecl_Ogre::Exception::_throw_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const___char_const___long_int_]
lea edi, [ecx + 0x28]
call dword [sym.imp.OgreMain.dll_public:_static_class_Ogre::MaterialManager____cdecl_Ogre::MaterialManager::getSingleton_void_]
mov edx, dword [eax]
push edi
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call dword [edx + 0x44]
push eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0x17c], 0x1a
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::SharedPtr_class_Ogre::Resource__const__]
mov eax, dword [esp + 0x70]
test eax, eax
mov byte [esp + 0x178], 0x1c
mov dword [esp + 0x68], 0x100ec508
je 0x10056897
dec dword [eax]
mov edx, dword [esp + 0x70]
cmp dword [edx], 0
jne 0x10056897
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x68]
call dword [eax + 4]
mov ecx, dword [esp + 0xc0]
test ecx, ecx
jne 0x100568f3
push edi
lea ecx, [esp + 0x13c]
push str.Cant_load_grid_material_template_
push ecx
call fcn.10001480
push 0x100f0d50
push eax
lea edx, [esp + 0x130]
push edx
mov byte [esp + 0x190], 0x1d
call fcn.10001500
add esp, 0x18
push 0x292
push str..CoreTerrain.cpp
push str.Terrain::_getGridMaterial
push eax
push 7
mov byte [esp + 0x18c], 0x1e
call dword [sym.imp.OgreMain.dll_public:_static_void___cdecl_Ogre::Exception::_throw_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const___char_const___long_int_]
push 0x10122668
push 1
lea eax, [esp + 0xa8]
push eax
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::MaterialPtr___thiscall_Ogre::Material::clone_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___bool__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x17c], 0x1f
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::MaterialPtr____thiscall_Ogre::MaterialPtr::operator_class_Ogre::MaterialPtr_const__]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x178], 0x1c
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
lea ecx, [esp + 0x24]
call fcn.1000acb0
mov dword [esp + 0x28], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax + 8], eax
mov dword [esp + 0x2c], edi
push str._layer0_
lea ecx, [esp + 0x50]
mov byte [esp + 0x17c], 0x20
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x3c]
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8 - 0x18]
mov eax, dword [eax + 0x10]
add eax, 0xc
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x180], 0x21
call fcn.1000b940
mov ecx, eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x178], 0x20
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp ebp, edi
je 0x10056a0e
push str._layer1_
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esi + 0x3c]
lea ecx, [ebp + ebp*2]
lea eax, [eax + ecx*8 - 0x18]
mov eax, dword [eax + 0x10]
add eax, 0xc
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x180], 0x22
call fcn.1000b940
mov ecx, eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x178], 0x20
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x13]
test al, al
je 0x10056a5d
push str._lightmap_
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x180], 0x23
call fcn.1000b940
mov ecx, eax
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x178], 0x20
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x44]
push 1
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.OgreMain.dll__applyTextureAliases_Material_Ogre__QBE_NABV__map_V__basic_string_DU__char_traits_D_std__V__allocator_D_2__st]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.100521e0
mov ecx, dword [esi + 0x24]
push ecx
push edi
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.10053710
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::VectorIterator_class_std::vector_class_Ogre::Technique___class_std::allocator_class_Ogre::Technique_______thiscall_Ogre::Material::getTechniqueIterator_void_]
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x34]
je 0x10056b01
mov ebp, dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::Pass::setDepthBias_unsigned_short_int_]
mov edi, dword [sym.imp.OgreMain.dll_public:_unsigned_short_int___thiscall_Ogre::Pass::getDepthBias_void_const]
mov ecx, eax
add eax, 4
lea edx, [esp + 0x14]
mov dword [esp + 0x30], eax
mov ecx, dword [ecx]
push edx
call dword [sym.imp.OgreMain.dll_public:_class_Ogre::VectorIterator_class_std::vector_class_Ogre::Pass___class_std::allocator_class_Ogre::Pass_______thiscall_Ogre::Technique::getPassIterator_void_const]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
je 0x10056af5
mov ecx, eax
add eax, 4
test bx, bx
mov dword [esp + 0x14], eax
mov esi, dword [ecx]
je 0x10056aef
mov ecx, esi
call edi
mov ecx, esi
add eax, ebx
push eax
call ebp
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
jne 0x10056ad0
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x34]
jne 0x10056ab0
xor edi, edi
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x184], 0x1c
call fcn.1000ba00
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0xbc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x178], 0x17
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0x178], 0x16
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call dword [sym.imp.OgreMain.dll_public:_void___thiscall_Ogre::MaterialPtr::constructor_class_Ogre::MaterialPtr_const__]
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x180], 0x24
call fcn.10053930
lea ecx, [esp + 0x54]
mov byte [esp + 0x178], 0x16
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x40]
add esi, 0x14
mov byte [esp + 0x178], 0xe
call dword [sym.imp.OgreMain.dll_public_virtual:_void___thiscall_Ogre::MaterialPtr::destructor_void_]
lea ecx, [esp + 0x100]
mov byte [esp + 0x178], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x178], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x16c
ret 0x10