Function at 0x45ab70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x4b33f0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x188], ecx
movzx eax, word [ebp + 0xc]
cmp eax, 0x14a
je 0x45ab99
xor al, al
jmp 0x45ae5f
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x188]
add ecx, 0x2188
call fcn.0045f400
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x12
jne 0x45abde
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 6]
push edx
mov eax, dword [ebp - 4]
add eax, 0x4a
push eax
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
call dword [eax + 0x44]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x13
jne 0x45ac09
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 6]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x4a
push edx
mov eax, dword [ebp - 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 0x210]
mov edx, dword [ebp - 0x188]
mov eax, dword [edx + 0x210]
mov edx, dword [ecx]
mov ecx, eax
call dword [edx + 0x24]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 2], eax
jne 0x45ac88
mov edx, dword [ebp - 0x188]
mov eax, dword [edx + 0x210]
mov ecx, dword [ebp - 0x188]
mov ecx, dword [ecx + 0x210]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x12
jne 0x45ac6b
mov edx, dword [ebp - 0x10]
mov ax, word [edx]
sub ax, 1
mov ecx, dword [ebp - 0x10]
mov word [ecx], ax
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x13
jne 0x45ac88
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx + 2]
sub dx, 1
mov eax, dword [ebp - 0x10]
mov word [eax + 2], dx
mov ecx, dword [ebp - 0x188]
call fcn.00457000
movzx ecx, al
test ecx, ecx
je 0x45ad13
mov edx, dword [ebp - 4]
mov eax, dword [edx + 2]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 4]
mov dx, word [ecx]
mov word [ebp - 0x168], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 6]
mov dword [ebp - 0x160], ecx
push 0x40
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
lea eax, [ebp - 0x15c]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push 0x100
mov ecx, dword [ebp - 4]
add ecx, 0x4a
push ecx
lea edx, [ebp - 0x11c]
push edx
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push 0x14c
lea eax, [ebp - 0x168]
push eax
push 0x68
push 5
mov ecx, dword [ebp - 0x188]
add ecx, 0x1d78
call fcn.00469270
call dword [sym.imp.PlatformData.dll_public:_static_class_CParameterGlobal____cdecl_CParameterGlobal::GetInstance_void_]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x1c]
test edx, edx
je 0x45ae5d
call fcn.0040d170
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x169], 0
call dword [sym.imp.GameEngine.dll_public:_static_class_CD3DSound____cdecl_CD3DSound::GetInstance_void_]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
je 0x45ad9a
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x12
jne 0x45ad69
mov dword [ebp - 0x18c], 0x49b44c
jmp 0x45ad73
mov dword [ebp - 0x18c], 0x49b458
push 0
push 0x49b440
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x170]
push eax
mov ecx, dword [ebp - 0x174]
call dword [sym.imp.GameEngine.dll_public:_bool___thiscall_CD3DSound::PlaySoundW_struct_HINSTANCE_____wchar_t_const___wchar_t_const___bool_]
mov byte [ebp - 0x169], al
movzx ecx, byte [ebp - 0x169]
test ecx, ecx
jne 0x45ae5d
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x12
jne 0x45adc0
mov dword [ebp - 0x190], str.BUGLE
jmp 0x45adca
mov dword [ebp - 0x190], str.BUGLE_EX
push 0x49b46c
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [ebp - 0x170]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x45ae5d
mov eax, dword [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x45ae50
mov edx, dword [ebp - 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x184], eax
push 7
mov eax, dword [ebp - 0x170]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov dword [ebp - 0x180], eax
mov edx, dword [ebp - 0x17c]
push edx
call fcn.0043c930
mov eax, dword [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
mov ecx, dword [ebp - 0x14]
call fcn.0048124d
mov esp, ebp
pop ebp
ret 8