Function at 0x402660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421918
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x54], ebx
push 8
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x402d92
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4026c4
push str.Failed_to_load_resource
jmp 0x402d97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4026db
push str.Failed_to_lock_resource
jmp 0x402d97
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x4026f9
push str.Resource_size_is_zero
jmp 0x402d97
push eax
lea ecx, [ebx + 0x288]
push edi
call dword [sym.imp.sfml_graphics_2.dll_public:_bool___thiscall_sf::Font::loadFromMemory_void_const___unsigned_int_]
test al, al
jne 0x402715
push str.Failed_to_load_textures_from_resource
jmp 0x402d97
lea eax, [ebx + 0x238]
push eax
push 0x65
call fcn.004034f0
test al, al
je 0x40270b
lea eax, [ebx + 0x260]
push eax
push 0x66
call fcn.004034f0
test al, al
je 0x40270b
lea edi, [ebx + 0x210]
push edi
push 0x67
call fcn.004034f0
test al, al
je 0x40270b
mov esi, dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Texture::setSmooth_bool_]
mov ecx, edi
push 0
call esi
push 0
lea ecx, [ebx + 0x238]
call esi
push 0
lea ecx, [ebx + 0x260]
call esi
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call dword [sym.imp.sfml_graphics_2.dll_public:_class_sf::Vector2_unsigned_int____thiscall_sf::Texture::getSize_void_]
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
push 0
mov dword [ebp - 0x38], eax
call esi
push 1
mov edi, eax
call esi
sub edi, dword [ebp - 0x34]
mov ecx, eax
sub ecx, dword [ebp - 0x38]
mov eax, edi
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar edi, 1
sar eax, 1
mov dword [ebp - 0x3c], eax
push 1
mov dword [ebp - 4], 0
call fcn.0040791e
add esp, 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push 0x42ab7d
lea ecx, [ebp - 0x6c]
call dword [sym.imp.sfml_system_2.dll_public:_void___thiscall_sf::String::constructor_char_const___class_std::locale_const__]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
mov esi, dword [ebx]
add eax, 0xfffffff8
push 0x20
push eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff8
push eax
call dword [sym.imp.sfml_window_2.dll_public:_void___thiscall_sf::VideoMode::constructor_unsigned_int__unsigned_int__unsigned_int_]
push 0
lea ecx, [ebp - 0x6c]
push ecx
movq xmm0, qword [eax]
sub esp, 0xc
mov eax, dword [eax + 8]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, ebx
call dword [esi + 8]
lea ecx, [ebp - 0x6c]
call dword [sym.imp.sfml_system_2.dll_public:_void___thiscall_sf::String::destructor_void_]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x402840
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x402840
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x3c]
mov ecx, ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], edi
call dword [sym.imp.sfml_window_2.dll_public:_void___thiscall_sf::WindowBase::setPosition_class_sf::Vector2_int__const__]
push 0x78
mov ecx, ebx
call dword [sym.imp.sfml_window_2.dll_public:_void___thiscall_sf::Window::setFramerateLimit_unsigned_int_]
push 0
lea eax, [ebx + 0x210]
push eax
lea ecx, [ebx + 0x2cc]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Sprite::setTexture_class_sf::Texture_const___bool_]
mov edi, dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Transformable::setPosition_float__float_]
lea ecx, [ebx + 0x2d0]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0xc0800000
call edi
push 0
lea esi, [ebx + 0x238]
push esi
lea ecx, [ebx + 0x3dc]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Sprite::setTexture_class_sf::Texture_const___bool_]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call dword [sym.imp.sfml_graphics_2.dll_public:_class_sf::Vector2_unsigned_int____thiscall_sf::Texture::getSize_void_]
movd xmm0, dword [ebp - 0x34]
lea ecx, [ebx + 0x3e0]
mov eax, dword [ebp - 0x20]
sub esp, 8
cvtdq2ps xmm0, xmm0
mov dword [esp + 4], 0x42140000
movaps xmm1, xmm0
movss dword [ebp - 0x34], xmm0
mulss xmm1, dword [0x42ae20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [ebp - 0x3c], xmm1
addsd xmm0, qword [eax*8 + 0x42ae70]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x42ae20]
subss xmm1, xmm0
movss dword [esp], xmm1
call edi
lea eax, [ebx + 0x288]
push eax
lea ecx, [ebx + 0x600]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Text::setFont_class_sf::Font_const__]
push 0x12
lea ecx, [ebx + 0x600]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Text::setCharacterSize_unsigned_int_]
push 0xff
push 0xf3
push 0xf3
push 0xf3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Color::constructor_unsigned_char__unsigned_char__unsigned_char__unsigned_char_]
push eax
lea ecx, [ebx + 0x600]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Text::setFillColor_class_sf::Color_const__]
push 1
mov dword [ebp - 4], 3
call fcn.0040791e
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 4
mov eax, dword [ebx + 0xaac]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0xab0]
lea eax, [eax + ecx*8]
lea ecx, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call dword [sym.imp.sfml_system_2.dll_public:_void___thiscall_sf::String::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::locale_const__]
push eax
lea ecx, [ebx + 0x600]
mov byte [ebp - 4], 5
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Text::setString_class_sf::String_const__]
lea ecx, [ebp - 0x6c]
call dword [sym.imp.sfml_system_2.dll_public:_void___thiscall_sf::String::destructor_void_]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4029d0
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4029d0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
lea ecx, [ebx + 0x3e0]
call dword [sym.imp.sfml_graphics_2.dll_public:_class_sf::Vector2_float__const____thiscall_sf::Transformable::getPosition_void_const]
mov ecx, dword [ebp - 0x1c]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
push ecx
addsd xmm0, qword [ecx*8 + 0x42ae70]
lea ecx, [ebx + 0x600]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [eax + 4]
lea eax, [ebp - 0x50]
addss xmm0, dword [0x42ae38]
movss dword [esp], xmm0
push eax
call dword [sym.imp.sfml_graphics_2.dll_public:_class_sf::Rect_float____thiscall_sf::Text::getGlobalBounds_void_]
movss xmm1, dword [ebp - 0x3c]
push ecx
lea ecx, [ebx + 0x604]
movss xmm0, dword [eax + 8]
mulss xmm0, dword [0x42ae20]
subss xmm1, xmm0
movss dword [esp], xmm1
call edi
push 0
lea esi, [ebx + 0x260]
push esi
lea ecx, [ebx + 0x4ec]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Sprite::setTexture_class_sf::Texture_const___bool_]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [sym.imp.sfml_graphics_2.dll_public:_class_sf::Vector2_unsigned_int____thiscall_sf::Texture::getSize_void_]
mov eax, dword [ebp - 0x24]
lea ecx, [ebx + 0x4f0]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x42ae70]
mov eax, dword [ebp - 0x28]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x42ae20]
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x42ae70]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x42ae20]
movss dword [esp], xmm0
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Transformable::setOrigin_float__float_]
movd xmm0, dword [ebp - 0x38]
lea ecx, [ebx + 0x4f0]
cvtdq2ps xmm0, xmm0
sub esp, 8
mulss xmm0, dword [0x42ae20]
movss dword [ebp - 0x40], xmm0
addss xmm0, dword [0x42ae50]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [esp], xmm0
call edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebx + 0x260]
call dword [sym.imp.sfml_graphics_2.dll_public:_class_sf::Vector2_unsigned_int____thiscall_sf::Texture::getSize_void_]
movss xmm1, dword [0x42ae54]
lea ecx, [ebx + 0x260]
mov eax, dword [eax]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x42ae70]
lea eax, [ebp - 0x48]
push eax
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp - 0x2c], xmm1
call dword [sym.imp.sfml_graphics_2.dll_public:_class_sf::Vector2_unsigned_int____thiscall_sf::Texture::getSize_void_]
mov eax, dword [eax + 4]
movss xmm1, dword [0x42ae54]
lea ecx, [ebx + 0x4f0]
movd xmm0, eax
sub esp, 8
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x42ae70]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Transformable::setScale_float__float_]
lea eax, [ebx + 0x288]
push eax
lea ecx, [ebx + 0x728]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Text::setFont_class_sf::Font_const__]
push 0x10
lea ecx, [ebx + 0x728]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Text::setCharacterSize_unsigned_int_]
push 0xff
push 0x7d
push 0x7d
push 0x7d
lea ecx, [ebp - 0x2c]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Color::constructor_unsigned_char__unsigned_char__unsigned_char__unsigned_char_]
push eax
lea ecx, [ebx + 0x728]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Text::setFillColor_class_sf::Color_const__]
push 1
mov dword [ebp - 4], 6
call fcn.0040791e
add esp, 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 7
push eax
push str.Downloading_at_0_KB_s
lea ecx, [ebp - 0x6c]
call dword [sym.imp.sfml_system_2.dll_public:_void___thiscall_sf::String::constructor_char_const___class_std::locale_const__]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebx + 0x728]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Text::setString_class_sf::String_const__]
lea ecx, [ebp - 0x6c]
call dword [sym.imp.sfml_system_2.dll_public:_void___thiscall_sf::String::destructor_void_]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x402c33
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x402c33
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
movd xmm0, dword [ebp - 0x38]
lea eax, [ebp - 0x50]
cvtdq2ps xmm0, xmm0
push ecx
lea ecx, [ebx + 0x728]
subss xmm0, dword [0x42ae48]
movss dword [esp], xmm0
push eax
call dword [sym.imp.sfml_graphics_2.dll_public:_class_sf::Rect_float____thiscall_sf::Text::getGlobalBounds_void_]
movss xmm1, dword [ebp - 0x3c]
push ecx
lea ecx, [ebx + 0x72c]
movss xmm0, dword [eax + 8]
mulss xmm0, dword [0x42ae20]
subss xmm1, xmm0
movss dword [esp], xmm1
call edi
movss xmm1, dword [ebp - 0x34]
lea esi, [ebx + 0x850]
movaps xmm0, xmm1
mov ebx, dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::RectangleShape::setSize_class_sf::Vector2_float__const__]
mulss xmm0, dword [0x42ae24]
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 0x2c], 0x41900000
subss xmm1, xmm0
movss dword [ebp - 0x30], xmm0
mulss xmm1, dword [0x42ae20]
movss dword [ebp - 0x34], xmm1
movss xmm1, dword [ebp - 0x40]
addss xmm1, dword [0x42ae34]
movss dword [ebp - 0x40], xmm1
call ebx
push 0xff
push 0x19
push 0x1c
push 0x1a
lea ecx, [ebp - 0x2c]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Color::constructor_unsigned_char__unsigned_char__unsigned_char__unsigned_char_]
mov edi, dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Shape::setFillColor_class_sf::Color_const__]
mov ecx, esi
push eax
call edi
movss xmm0, dword [ebp - 0x40]
sub esp, 8
mov esi, dword [ebp - 0x54]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x34]
lea ecx, [esi + 0x854]
movss dword [esp], xmm0
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Transformable::setPosition_float__float_]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
lea ecx, [esi + 0x96c]
mov dword [ebp - 0x2c], 0x41900000
call ebx
push 0xff
push 0x16
push 0x3d
push 0xf4
lea ecx, [ebp - 0x38]
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Color::constructor_unsigned_char__unsigned_char__unsigned_char__unsigned_char_]
push eax
lea ecx, [esi + 0x96c]
call edi
movss xmm0, dword [ebp - 0x40]
sub esp, 8
mov ecx, esi
add ecx, 0x970
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [esp], xmm0
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Transformable::setPosition_float__float_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408218
mov esp, ebp
pop ebp
ret
push str.Failed_to_find_resource
lea ecx, [ebp - 0x4c]
call fcn.00401590
push 0x42cdf8
lea eax, [ebp - 0x4c]
push eax
call fcn.004098c0
int3