Function at 0x4637e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493356
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc8
mov eax, dword [0x4b0300]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x88], ecx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x7c], eax
movzx eax, word [ebx + 8]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x463866
push 0x10
push str.Error
push str.Failed_to_find_resource.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x463e49
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x46388f
push 0x10
push str.Error
push str.Failed_to_load_resource.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x463e49
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x84], eax
test eax, eax
jne 0x4638bd
push 0x10
push str.Error
push str.Failed_to_lock_resource.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x463e49
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
test esi, esi
jne 0x4638e8
push 0x10
push str.Error
push str.Resource_size_is_zero.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x80004005
jmp 0x463e49
push 0x34
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.0046b770
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
sub esp, 0x1c
mov dword [ebp - 4], 0
mov eax, esp
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push esi
push dword [ebp - 0x84]
call fcn.00466020
mov esi, eax
add esp, 0x3c
mov dword [ebp - 0x84], esi
test esi, esi
jns 0x463dad
push 0
push 0
lea eax, [ebp - 0x7c]
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
mov edx, dword [ebp - 0x7c]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463995
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.004040a0
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd4]
call fcn.00464280
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xc0]
mov eax, edx
mov ecx, dword [ebp - 0xc4]
sub eax, ecx
cmp eax, 0x32
jb 0x463a5f
cmp edx, 0xf
lea esi, [ebp - 0xd4]
lea eax, [ecx + 0x32]
cmova esi, dword [ebp - 0xd4]
mov dword [ebp - 0xc4], eax
cmp esi, 0x4a5d2e
jae 0x463a17
lea eax, [esi + ecx]
cmp eax, str.Failed_to_load_texture_from_resource:_nError_Code:
jb 0x463a17
cmp esi, str.Failed_to_load_texture_from_resource:_nError_Code:
ja 0x463a0d
xor edi, edi
jmp 0x463a1c
mov edi, esi
sub edi, str.Failed_to_load_texture_from_resource:_nError_Code:
jmp 0x463a1c
mov edi, 0x32
lea eax, [ecx + 1]
push eax
lea ecx, [esi + 0x32]
push esi
push ecx
call fcn.0046b1f0
add esp, 0xc
push edi
push str.Failed_to_load_texture_from_resource:_nError_Code:
push esi
call fcn.0046b1f0
add esp, 0xc
lea ecx, [edi + 0x4a5d2e]
mov edx, 0x32
lea eax, [esi + edi]
sub edx, edi
push edx
push ecx
push eax
call fcn.0046b1f0
add esp, 0xc
lea eax, [ebp - 0xd4]
jmp 0x463a77
push 0x32
sub esp, 8
lea ecx, [ebp - 0xd4]
push dword [ebp - 0x8c]
push 0x32
call fcn.00464410
mov dword [ebp - 0xac], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0xa8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xbc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xac], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xa8]
mov eax, edx
mov ecx, dword [ebp - 0xac]
sub eax, ecx
cmp eax, 1
jb 0x463afd
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xbc]
cmova eax, dword [ebp - 0xbc]
mov word [eax + ecx], 0xa
lea eax, [ebp - 0xbc]
jmp 0x463b17
push 1
push 0x4a5074
push dword [ebp - 0x8c]
lea ecx, [ebp - 0xbc]
push 1
call fcn.004042e0
mov dword [ebp - 0x94], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0x90], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x94], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x94]
cmova edx, edi
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x90]
sub eax, esi
mov dword [ebp - 0x80], esi
push ecx
push edx
cmp ecx, eax
ja 0x463bd5
cmp dword [ebp - 0x90], 0xf
lea eax, [ecx + esi]
mov dword [ebp - 0x94], eax
lea esi, [ebp - 0xa4]
cmova esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x80]
add eax, esi
push eax
call fcn.0046b1f0
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov ecx, dword [ebp - 0x80]
add eax, esi
mov esi, dword [ebp - 0x88]
mov byte [eax + ecx], 0
lea eax, [ebp - 0xa4]
jmp 0x463bed
push dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.004042e0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x90]
cmp ecx, 0xf
jbe 0x463c5e
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463c54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463e67
push ecx
push edx
call fcn.004694c5
add esp, 8
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
cmp ecx, 0xf
jbe 0x463cb3
mov edx, dword [ebp - 0xbc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463ca9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463e67
push ecx
push edx
call fcn.004694c5
add esp, 8
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
cmp ecx, 0xf
jbe 0x463d08
mov edx, dword [ebp - 0xd4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463cfe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463e67
push ecx
push edx
call fcn.004694c5
add esp, 8
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0x10
cmova eax, dword [ebp - 0x2c]
push str.Error_Loading_Texture
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x463d60
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463d56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463e6c
push ecx
push edx
call fcn.004694c5
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp esi, 0xf
jbe 0x463da2
lea ecx, [esi + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x463d98
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463e6c
push ecx
push edi
call fcn.004694c5
add esp, 8
mov esi, dword [ebp - 0x84]
jmp 0x463e3b
push dword [ebp - 0x80]
mov edi, dword [ebp - 0x88]
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 0x4c]
mov ecx, edi
push eax
push dword [ebp - 0x78]
call fcn.00463e80
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x463e0b
mov edx, str.Failed_to_create_texture._HRESULT:
mov ecx, 0x4b2358
call fcn.00411ca0
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.00464040
push eax
call fcn.00412190
add esp, 4
jmp 0x463e3b
push dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
mov eax, dword [edi]
push 0
push dword [ecx]
push edi
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
jns 0x463e39
mov edi, dword [ebp - 0x80]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [edi], 0
mov edx, str.Failed_to_create_shader_resource_view._HRESULT:
jmp 0x463dd5
xor esi, esi
lea eax, [ebp - 0x78]
push eax
call fcn.004666c0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00469231
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047182d
call fcn.0047182d
int3