Function at 0x431060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
cmp word [ebp + 0xc], 0x14e
mov eax, dword [0x4612a8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x160], eax
push edi
mov dword [esp + 0xc], esi
je 0x4310a0
xor al, al
mov ecx, dword [esp + 0x164]
call fcn.004430ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x12
jne 0x4310c4
mov edx, dword [ebx + 6]
mov eax, dword [esi + 0xb128]
push edx
lea edx, [ebx + 0x4a]
push edx
lea ecx, [esi + 0xb128]
lea edx, [ebx + 0xa]
push edx
call dword [eax + 0x44]
cmp word [ebx], 0x13
jne 0x4310d4
mov eax, dword [ebx + 0x14a]
test eax, eax
je 0x4310ed
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx]
call dword [eax + 0x28]
cmp dword [ebx + 0x14a], eax
jne 0x431108
cmp word [ebx], 0x13
jne 0x431108
mov eax, dword [ebx + 6]
mov edx, dword [esi + 0xb128]
push eax
lea eax, [ebx + 0x4a]
push eax
lea ecx, [esi + 0xb128]
lea eax, [ebx + 0xa]
push eax
call dword [edx + 0x48]
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx]
call dword [edx + 0x24]
cmp dword [ebx + 2], eax
jne 0x431146
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp word [ebx], 0x12
jne 0x43112c
dec word [eax]
cmp word [ebx], 0x13
jne 0x431136
dec word [eax + 2]
mov ecx, dword [esi + 0x1ee8]
test ecx, ecx
je 0x431146
call dword [sym.imp.GameProperty.dll_public:_void___thiscall_CDlgTrumpetItem::UpdateControlSurface_void_]
lea ecx, [esi + 0x1adc]
call fcn.0042a330
test al, al
je 0x4311b2
mov eax, dword [ebx + 0x14a]
test eax, eax
jne 0x4311b2
mov ecx, dword [ebx + 2]
mov dx, word [ebx]
mov eax, dword [ebx + 6]
mov dword [esp + 0x14], ecx
mov word [esp + 0x10], dx
mov dword [esp + 0x18], eax
lea esi, [ebx + 0xa]
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x4a]
mov ecx, 0x40
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
push 0x14c
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push 0x68
push 5
add ecx, 0x1adc
call fcn.0042a830
mov esi, dword [esp + 0xc]
call dword [sym.imp.PlatformData.dll_public:_static_class_CParameterGlobal____cdecl_CParameterGlobal::GetInstance_void_]
mov cl, byte [eax + 0x1a]
test cl, cl
je 0x431260
mov eax, dword [ebx + 0x14a]
test eax, eax
je 0x4311e2
mov esi, dword [esi + 0xc0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x28]
cmp dword [ebx + 0x14a], eax
jne 0x431260
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov esi, dword [eax + 8]
call dword [sym.imp.GameEngine.dll_public:_static_class_CD3DSound____cdecl_CD3DSound::GetInstance_void_]
test eax, eax
je 0x431219
cmp word [ebx], 0x12
mov ecx, str.BUGLE
je 0x431204
mov ecx, 0x454674
push 0
push 0x451fa4
push ecx
push esi
mov ecx, eax
call dword [sym.imp.GameEngine.dll_public:_bool___thiscall_CD3DSound::PlaySoundW_struct_HINSTANCE_____wchar_t_const___wchar_t_const___bool_]
test al, al
jne 0x431260
cmp word [ebx], 0x12
mov eax, str.BUGLE
je 0x431229
mov eax, 0x454674
push 0x451fa4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x431260
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x431259
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 7
push esi
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x164]
mov al, 1
call fcn.004430ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8