joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41efa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x88]
push esi
mov esi, dword [esp + 0x88]
test ebx, ebx
push edi
je 0x41efcd
mov ecx, dword [0x4aef34]
lea edx, [esi + 0x18]
push ebx
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x24]
push edx
call dword [eax + 8]
mov edx, 2
mov ecx, 0x70bfa4
fld dword [esp + 0x24]
fmul dword [ecx + 4]
fld dword [esp + 0x1c]
fmul dword [ecx - 4]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [ecx]
faddp st(1)
fadd dword [ecx + 8]
fadd dword [0x47f39c]
fcom dword [esi + 0x30]
fnstsw ax
and eax, 0x4100
je 0x41f01d
fchs
fcomp dword [esi + 0x30]
fnstsw ax
and eax, 0x4100
je 0x41f14e
mov edx, 1
jmp 0x41f01f
fstp st(0)
add ecx, 0x10
cmp ecx, 0x70c004
jl 0x41efd7
cmp dx, 1
mov eax, edx
jne 0x41f1c3
fld dword [esi]
fadd dword [esi + 0x18]
test ebx, ebx
fst dword [esp + 0x28]
fld dword [esi + 4]
fadd dword [esi + 0x1c]
fst dword [esp + 0x2c]
fld dword [esi + 8]
fadd dword [esi + 0x20]
fst dword [esp + 0x18]
fst dword [esp + 0x30]
fld st(2)
fstp dword [esp + 0x34]
fld st(1)
fstp dword [esp + 0x38]
fld dword [esi + 0x14]
fadd dword [esi + 0x20]
fst dword [esp + 0x14]
fst dword [esp + 0x3c]
fld st(3)
mov eax, dword [esp + 0x14]
fstp dword [esp + 0x40]
fld dword [esi + 0x10]
fadd dword [esi + 0x1c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x84], eax
fst dword [esp + 0x10]
fst dword [esp + 0x44]
fld st(2)
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x48]
fxch st(4)
fstp dword [esp + 0x4c]
fxch st(3)
fstp dword [esp + 0x50]
fxch st(2)
fstp dword [esp + 0x54]
fld dword [esi + 0xc]
fadd dword [esi + 0x18]
mov dword [esp + 0x74], edx
mov dword [esp + 0x80], edx
fst dword [esp + 0xc]
fst dword [esp + 0x58]
fld st(1)
mov ecx, dword [esp + 0xc]
fstp dword [esp + 0x5c]
fxch st(2)
fstp dword [esp + 0x60]
fxch st(1)
fstp dword [esp + 0x64]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], ecx
fstp dword [esp + 0x68]
je 0x41f118
lea esi, [esp + 0x28]
mov edi, 8
mov ecx, dword [0x4aef34]
push ebx
push esi
push esi
mov edx, dword [ecx]
call dword [edx + 8]
add esi, 0xc
dec edi
jne 0x41f104
mov ebx, 2
mov ecx, 0x70bfa4
fld dword [esp + 0x28]
fmul dword [ecx - 4]
fld dword [esp + 0x2c]
fmul dword [ecx]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [ecx + 4]
faddp st(1)
fadd dword [ecx + 8]
fcomp dword [0x47f590]
fnstsw ax
test ah, 5
jp 0x41f159
xor edi, edi
jmp 0x41f15e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret 8
mov edi, 2
mov esi, 7
lea edx, [esp + 0x2c]
fld dword [edx + 8]
fmul dword [ecx - 4]
fld dword [edx + 0x10]
add edx, 0xc
fmul dword [ecx + 4]
faddp st(1)
fld dword [ecx]
fmul dword [edx]
faddp st(1)
fadd dword [ecx + 8]
fcomp dword [0x47f590]
fnstsw ax
test ah, 5
jp 0x41f192
xor eax, eax
jmp 0x41f197
mov eax, 2
cmp ax, di
jne 0x41f1ac
dec esi
test esi, esi
jg 0x41f167
test ax, ax
je 0x41f1cc
cmp ax, 1
jne 0x41f1b1
mov ebx, 1
add ecx, 0x10
cmp ecx, 0x70c004
jl 0x41f122
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0x7c
ret 8
pop edi
pop esi
xor ax, ax
pop ebx
add esp, 0x7c
ret 8
Function at 0x430250
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40
lea eax, [esp]
push 0x4ae040
push eax
call fcn.00465066
add esp, 8
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x44]
mov dword [0x787c98], 1
push edx
call fcn.004302a0
add esp, 4
call fcn.00430520
add esp, 0x40
jmp fcn.004302c0

Function at 0x430490
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [0x787b30]
xor eax, eax
mov dword [0x787c98], eax
test esi, esi
mov dword [0x787c9c], eax
mov dword [0x787c98], eax
je 0x4304c6
mov ecx, esi
call fcn.004443e0
push esi
call fcn.004650df
add esp, 4
mov dword [0x787b30], 0
push str.Removed_PcDraw_Manager._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret
Function at 0x4318d0
Capabilities:
Print debug messages

Disassembly:
push edi
mov ecx, 0x27
xor eax, eax
mov edi, 0x787cc0
rep stosd dword es:[edi], eax
push 0x4ae1a0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00431930
call fcn.00431910
push 0
push 0
push 0
call fcn.00432dd0
push 0
push 0
push 0
call fcn.00432e90
add esp, 0x18
pop edi
ret

Function at 0x431a60
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [0x787cc8]
test esi, esi
je 0x431aa3
push edi
mov edi, esi
mov esi, dword [esi]
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x431a82
push eax
call fcn.00449060
jmp 0x431a92
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x431a95
push eax
call fcn.0044b400
add esp, 4
push edi
call fcn.00458f80
add esp, 4
test esi, esi
jne 0x431a6c
pop edi
call fcn.0044b310
call fcn.00448f60
push str.FE3D_Group_Stuff
mov dword [0x787cc8], 0
call fcn.004580f0
push str.FE3D_Interp_Stuff
call fcn.004580f0
add esp, 8
call fcn.00433b70
call fcn.00433db0
push str.FE3D:_Exiting___done_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret

Function at 0x432110
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [0x787cc8]
xor ebx, ebx
mov eax, dword [ebp + 0x10c]
push edi
mov edi, dword [ebp + 0x98]
cmp eax, 1
jne 0x432187
mov ecx, dword [edi + 0xa4]
call fcn.0044afe0
mov eax, dword [edi + 0xa4]
push eax
call fcn.0044b400
add esp, 4
test esi, esi
je 0x432165
cmp esi, edi
je 0x43215b
mov ebx, esi
mov esi, dword [esi]
test esi, esi
jne 0x43214f
test ebx, ebx
je 0x432165
mov ecx, dword [esi]
mov dword [ebx], ecx
jmp 0x43216d
mov edx, dword [esi]
mov dword [0x787cc8], edx
push esi
call fcn.00458f80
add esp, 4
mov dword [ebp + 0x98], 0
push str._Anim_Model_removed..._n
jmp 0x4321e1
mov ecx, dword [edi + 0xa0]
call fcn.00448d30
mov eax, dword [edi + 0xa0]
push eax
call fcn.00449060
add esp, 4
test esi, esi
je 0x4321bb
cmp esi, edi
je 0x4321b1
mov ebx, esi
mov esi, dword [esi]
test esi, esi
jne 0x4321a5
test ebx, ebx
je 0x4321bb
mov ecx, dword [esi]
mov dword [ebx], ecx
jmp 0x4321c3
mov edx, dword [esi]
mov dword [0x787cc8], edx
push esi
call fcn.00458f80
push ebp
mov dword [ebp + 0x98], 0
call fcn.00432410
add esp, 8
push str._Object_Model_removed..._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call fcn.00432490
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004301e0

Function at 0x434cb0
Capabilities:
Print debug messages

Disassembly:
call fcn.00434d10
mov eax, dword [0x787d68]
test eax, eax
je 0x434cd1
push esi
mov esi, dword [eax]
push eax
call fcn.00458f80
add esp, 4
mov eax, esi
test esi, esi
jne 0x434cbf
pop esi
xor eax, eax
push str.Removed_PCFONT_Manager._n
mov dword [0x787d60], eax
mov dword [0x787d64], eax
mov dword [0x787d68], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x787d60], 0
ret
Function at 0x435230
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x34]
mov cx, word [eax + 6]
cmp cx, 1
jne 0x435281
mov eax, dword [0x787d64]
mov ecx, dword [eax]
mov dword [0x787d64], ecx
mov edx, dword [esi + 0x34]
mov eax, dword [edx + 8]
push eax
call fcn.00435f00
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + 8]
push edx
call fcn.00458f80
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x2c]
push ecx
call fcn.00458f80
mov edx, dword [esi + 0x34]
push edx
call fcn.00458f80
add esp, 0x10
pop esi
ret
dec ecx
push str.Font___Count_1_n
mov word [eax + 6], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret
Function at 0x435f00
Capabilities:
Print debug messages

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x787eec]
push edi
xor edi, edi
xor ebp, ebp
test esi, esi
je 0x435f25
mov ebx, dword [esp + 0x14]
cmp esi, ebx
je 0x435f2d
mov edi, esi
mov esi, dword [esi + 8]
test esi, esi
jne 0x435f12
jmp 0x435f29
mov ebx, dword [esp + 0x14]
cmp esi, ebx
jne 0x435f50
push str.VRam___...removed..._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, dword [0x787eec]
jne 0x435f4a
mov eax, dword [esi + 8]
mov dword [0x787eec], eax
jmp 0x435f50
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov esi, dword [0x787ef8]
test esi, esi
je 0x436051
mov eax, dword [ebx + 0xc]
cmp dword [esi + 4], eax
jne 0x435f70
mov dx, word [esi + 0x26]
cmp dx, word [ebx + 0x12]
je 0x435f7d
mov ebp, esi
mov esi, dword [esi]
test esi, esi
jne 0x435f61
pop edi
pop esi
pop ebp
pop ebx
ret
mov ax, word [esi + 0x24]
cmp ax, 1
jne 0x43604c
mov al, byte [ebx + 0x14]
test al, al
jle 0x436020
mov cx, word [ebx + 0x12]
push ecx
push eax
call fcn.00436320
mov edi, eax
add esp, 8
xor ebx, ebx
mov al, byte [edi + 5]
test al, al
jbe 0x436006
mov esi, dword [0x787ef8]
test esi, esi
je 0x435ffc
mov edx, dword [edi + 0x18]
mov eax, dword [edx + ebx*4]
cmp dword [esi + 4], eax
jne 0x435fce
mov cx, word [esi + 0x26]
cmp cx, word [edi + 0x14]
je 0x435fd8
mov ebp, esi
mov esi, dword [esi]
test esi, esi
jne 0x435fbf
jmp 0x435ffc
push esi
call fcn.00436060
add esp, 4
test eax, eax
je 0x435ffc
cmp esi, dword [0x787ef8]
jne 0x435ff7
mov edx, dword [esi]
mov dword [0x787ef8], edx
jmp 0x435ffc
mov eax, dword [esi]
mov dword [ebp], eax
xor ecx, ecx
inc ebx
mov cl, byte [edi + 5]
cmp ebx, ecx
jl 0x435faf
mov eax, dword [esp + 0x14]
mov dx, word [eax + 0x12]
mov al, byte [eax + 0x14]
push edx
push eax
call fcn.00436280
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00436060
add esp, 4
test eax, eax
je 0x436051
cmp esi, dword [0x787ef8]
jne 0x436042
mov ecx, dword [esi]
pop edi
pop esi
pop ebp
mov dword [0x787ef8], ecx
pop ebx
ret
mov edx, dword [esi]
pop edi
mov dword [ebp], edx
pop esi
pop ebp
pop ebx
ret
dec eax
mov word [esi + 0x24], ax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x436060
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp word [esi + 0x24], 1
jne 0x436106
push str.VRam___Image_Removed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x4360bd
push edi
mov edi, dword [0x787efc]
mov eax, edi
cmp dword [eax + 4], ecx
je 0x43609f
mov edx, eax
mov eax, dword [eax]
cmp dword [eax + 4], ecx
jne 0x436094
jmp 0x4360a3
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
cmp eax, edi
pop edi
jne 0x4360b2
mov dword [0x787efc], ecx
jmp 0x4360b4
mov dword [edx], ecx
push eax
call fcn.00458f80
add esp, 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4360cd
push eax
call fcn.00458f80
add esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4360dd
push eax
call fcn.00458f80
add esp, 4
push esi
call fcn.00437210
mov eax, dword [esi + 0x18]
add esp, 4
test eax, eax
je 0x4360f6
push eax
call fcn.00458f80
add esp, 4
push esi
call fcn.00458f80
add esp, 4
mov eax, 1
pop esi
ret
push str.VRam___Image_Count_1_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
dec word [esi + 0x24]
xor eax, eax
pop esi
ret
Function at 0x4363b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x48]
push ebx
push ebp
push esi
mov cl, byte [eax]
mov bx, word [eax + 2]
push edi
push str.Palette
push str.PCVRAM
push 0x418
mov byte [esp + 0x64], cl
call fcn.00458430
mov ebp, eax
mov ecx, 0x106
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x68]
add esp, 0xc
cmp ecx, 0xffffffff
jne 0x436403
mov edx, dword [0x787efc]
mov dword [ebp], edx
mov dword [0x787efc], ebp
jmp 0x43641e
mov eax, dword [0x787efc]
test eax, eax
je 0x436417
cmp dword [eax + 4], ecx
je 0x436417
mov eax, dword [eax]
test eax, eax
jne 0x43640c
mov ecx, dword [eax]
mov dword [ebp], ecx
mov dword [eax], ebp
mov eax, dword [0x787f24]
lea edx, [esp + 0x10]
mov edi, eax
inc eax
push edi
push str.Pal_ID_d_n
mov dword [0x787f24], eax
push edx
mov dword [ebp + 4], edi
call fcn.00465066
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x58]
and ecx, 0xff
lea eax, [ecx - 0x60]
cmp eax, 7
ja case.0x436462.98
jmp dword [eax*4 + 0x4365b0]
mov ecx, dword [esp + 0x54]
mov esi, ebx
and esi, 0xffff
jle 0x43659b
lea eax, [ebp + 0x15]
mov dx, word [ecx]
add ecx, 2
shr edx, 0xb
and dl, 0x1f
mov byte [eax + 1], dl
mov dx, word [ecx - 2]
shr edx, 5
and dl, 0x3e
mov byte [eax], dl
mov dl, byte [ecx - 2]
and dl, 0x1f
mov byte [eax - 1], dl
add eax, 4
dec esi
jne 0x43647e
jmp 0x43659b
mov ecx, dword [esp + 0x54]
mov esi, ebx
and esi, 0xffff
jle 0x43659b
lea eax, [ebp + 0x15]
mov dx, word [ecx]
add ecx, 2
shr edx, 0xa
and dl, 0x1f
mov byte [eax + 1], dl
mov dx, word [ecx - 2]
shr edx, 5
and dl, 0x1f
mov byte [eax], dl
mov dl, byte [ecx - 2]
and dl, 0x1f
mov byte [eax - 1], dl
add eax, 4
dec esi
jne 0x4364c2
jmp 0x43659b
mov eax, dword [esp + 0x54]
mov esi, ebx
and esi, 0xffff
jle 0x43659b
lea ecx, [ebp + 0x15]
mov dl, byte [eax]
inc eax
mov byte [ecx + 1], dl
add ecx, 4
mov dl, byte [eax]
inc eax
mov byte [ecx - 4], dl
mov dl, byte [eax]
inc eax
mov byte [ecx - 5], dl
dec esi
jne 0x436506
jmp 0x43659b
mov esi, ebx
and esi, 0xffff
jle 0x43659b
mov eax, dword [esp + 0x54]
lea ecx, [ebp + 0x15]
add eax, 2
mov dl, byte [eax + 1]
add eax, 4
mov byte [ecx + 1], dl
mov dl, byte [eax - 4]
mov byte [ecx], dl
mov edx, dword [eax - 6]
shr edx, 8
mov byte [ecx - 1], dl
add ecx, 4
dec esi
jne 0x436534
jmp 0x43659b
mov ecx, dword [esp + 0x54]
mov esi, ebx
and esi, 0xffff
jle 0x43659b
lea eax, [ebp + 0x15]
mov edx, dword [ecx]
add ecx, 4
shr edx, 0xa
and dl, 0x1f
mov byte [eax + 1], dl
mov edx, dword [ecx - 4]
shr edx, 5
and dl, 0x1f
mov byte [eax], dl
mov dl, byte [ecx - 4]
and dl, 0x1f
mov byte [eax - 1], dl
add eax, 4
dec esi
jne 0x436564
jmp 0x43659b
push str.That_Palette_type_not_yet_supported__only_32_8888_5558__24_16_555_565_
call fcn.00459e30
add esp, 4
mov al, byte [esp + 0x58]
mov word [ebp + 0xa], bx
mov byte [ebp + 8], al
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x436f30
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00435ec0
add esp, 4
mov dword [esi + 0x20], eax
inc word [eax + 0x24]
push str.VRam___Count1_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret

Function at 0x438ea0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x787f80]
test eax, eax
je 0x438eb6
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
jmp fcn.004435a0
ret

Function at 0x440af0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax]
mov eax, 1
push edi
shl eax, cl
shl edx, cl
shl ebx, cl
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ebx
lea ecx, [eax + edx]
xor ebx, ebx
cmp edx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ecx
jge 0x440bbc
mov edx, dword [esp + 0x28]
lea ecx, [eax + edx]
mov dword [esp + 0x10], ecx
jmp 0x440b50
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
cmp edx, ecx
jge 0x440bab
mov eax, dword [esi + 0x104]
imul eax, dword [esp + 0x30]
add eax, edx
mov edx, dword [esi + 0x134]
mov esi, ecx
lea edx, [edx + eax*4]
mov eax, dword [esp + 0x28]
sub esi, eax
mov ecx, dword [edx]
add edx, 4
mov eax, ecx
mov dword [esp + 0x14], ecx
shr eax, 0x18
add edi, eax
xor eax, eax
mov al, byte [esp + 0x16]
add ebp, eax
xor eax, eax
mov al, ch
and ecx, 0xff
add ebx, eax
mov eax, dword [esp + 0x2c]
add eax, ecx
dec esi
mov dword [esp + 0x2c], eax
jne 0x440b72
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
inc ecx
cmp ecx, edx
mov dword [esp + 0x30], ecx
jl 0x440b48
mov ecx, eax
xor edx, edx
imul ecx, eax
mov eax, dword [esp + 0x2c]
div ecx
xor edx, edx
mov esi, eax
mov eax, edi
div ecx
shl esi, 8
xor edx, edx
pop edi
or esi, eax
mov eax, ebp
div ecx
shl esi, 8
xor edx, edx
or esi, eax
mov eax, ebx
div ecx
shl esi, 8
or eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x442830
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x7dedfc]
test eax, eax
je 0x44283e
jmp fcn.00442380
ret
Function at 0x442d30
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x7dedfc]
sub esp, 0x84
test eax, eax
push esi
push edi
je 0x442e6a
mov ecx, dword [esp + 0x90]
mov edx, dword [0x7dedec]
mov eax, ecx
and eax, 0xff
cmp eax, edx
jge 0x442e6a
lea esi, [eax + eax*2]
shl esi, 4
cmp dword [esi + 0x7e0b98], ecx
jne 0x442e6a
mov eax, dword [esi + 0x7e0ba0]
test eax, eax
jne 0x442e6a
mov eax, dword [esi + 0x7e0bb4]
test eax, eax
je 0x442e6a
mov ecx, dword [esi + 0x7e0b94]
mov edx, 0x64
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
movsx ecx, word [eax*8 + 0x7c90f0]
sub edx, ecx
push edx
call fcn.00442080
mov ecx, eax
movsx eax, word [esp + 0x98]
push eax
call fcn.00442080
movsx edx, word [0x7e0dd8]
add ecx, eax
add esp, 8
add ecx, edx
cmp ecx, 0xffffd8f0
jge 0x442de3
mov ecx, 0xffffd8f0
jmp 0x442e07
test ecx, ecx
jle 0x442e07
push ecx
lea eax, [esp + 0x10]
push str.cl_sound_warning:_sndChangeVol_____volume__d_out_of_range_n
push eax
call fcn.00465066
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
mov eax, dword [esi + 0x7e0bb4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x3c]
mov ax, word [esp + 0x98]
mov esi, dword [esi + 0x7e0bb4]
test ax, ax
mov edi, dword [esi]
jge 0x442e4f
movsx eax, ax
neg eax
mov dword [esp + 8], eax
fild dword [esp + 8]
fmul dword [0x47f4b0]
call fcn.004650b8
push eax
push esi
call dword [edi + 0x40]
pop edi
pop esi
add esp, 0x84
ret
movsx ecx, ax
mov dword [esp + 8], ecx
fild dword [esp + 8]
fmul dword [0x47f3cc]
call fcn.004650b8
push eax
push esi
call dword [edi + 0x40]
pop edi
pop esi
add esp, 0x84
ret
Function at 0x443230
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x7dedfc]
test eax, eax
je 0x44328d
mov eax, dword [0x7dedec]
push edi
xor edi, edi
test eax, eax
jle 0x443281
push esi
mov esi, 0x7e0bb4
push edi
call fcn.00442060
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x443266
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], 0
mov eax, dword [0x7dedec]
mov dword [esi], 0
mov dword [esi - 0x18], 0
inc edi
add esi, 0x30
cmp edi, eax
jl 0x44324b
pop esi
push str.cl_Sound:_All_sounds_stopped_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
ret

Function at 0x443290
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x7dedfc]
test eax, eax
je 0x443315
push esi
call fcn.00455270
push 0
call fcn.004434d0
mov eax, dword [0x7c8fe0]
push eax
call fcn.00454b10
add esp, 8
call fcn.00443230
xor esi, esi
push esi
call fcn.00442840
add esp, 4
inc esi
cmp esi, 0x140
jb 0x4432bb
mov eax, dword [0x7dedf4]
pop esi
test eax, eax
je 0x4432e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x7dedf4], 0
mov eax, dword [0x7dee04]
test eax, eax
je 0x443300
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [0x7dee04], 0
push str.cl_Sound:_Sound_system_shut_down_n
mov dword [0x7e0dd4], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret

Function at 0x4435a0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x7dedfc]
test eax, eax
je 0x4435f4
mov eax, dword [0x4af298]
mov cx, word [esp + 4]
test eax, eax
mov word [0x4af29c], cx
jle 0x4435f4
cmp eax, 0x1a
jge 0x4435f4
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
test byte [eax*4 + 0x7def10], 1
je 0x4435f5
movsx ecx, cx
mov dword [esp + 4], ecx
push ecx
fild dword [esp + 8]
fmul dword [0x47f3b8]
fstp dword [esp]
call fcn.00455380
add esp, 4
ret
movsx edx, cx
mov dword [esp + 4], edx
fild dword [esp + 4]
fmul dword [0x47f360]
call fcn.004650b8
mov dword [esp + 4], eax
jmp fcn.00454b10

Function at 0x444830
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x444843
push eax
call sub.MSVFW32.dll_DrawDibClose
mov eax, dword [esi + 0x94]
test eax, eax
je 0x444856
push eax
call fcn.0046650b
add esp, 4
mov eax, dword [esi + 0x174]
test eax, eax
je 0x444869
push eax
call fcn.0046650b
add esp, 4
mov ecx, esi
call fcn.004447f0
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x44488f
push eax
call sub.AVIFIL32.dll_AVIStreamGetFrameClose
test eax, eax
je 0x44488f
push str.Error_closing_get_frame_ptr_in_avi.cpp
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x228]
push eax
call sub.AVIFIL32.dll_AVIFileRelease
mov eax, 1
pop esi
ret
Function at 0x444ba0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ecx, ecx
push edi
cmp dword [esi + 0x2a8], ecx
je 0x444bcd
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0x2b0]
pop edi
sub eax, ecx
mov dword [esi + 0x2ac], eax
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov ebx, dword [esp + 0x18]
cmp ebx, ecx
je 0x444be6
mov ebp, dword [ebx + 8]
mov edi, dword [ebx]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
sub ebp, edi
sub eax, edx
jmp 0x444bf2
mov ebp, dword [esi + 0x1b8]
mov eax, dword [esi + 0x1b4]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x2a4], ecx
jne 0x444c18
call edi
mov dword [esi + 0x2ac], eax
mov dword [esi + 0x2a4], 1
xor ecx, ecx
cmp dword [esi + 0x2b4], ecx
je 0x444c5c
cmp dword [esi + 0x180], ecx
je 0x444c46
cmp dword [esi + 0x2c0], ecx
je 0x444c46
cmp dword [esi + 0x2b8], ecx
je 0x444c4c
cmp dword [esi + 0x2c8], ecx
je 0x444c4c
mov dword [esi + 0x2b8], ecx
mov dword [esi + 0x2b4], ecx
call edi
sub eax, dword [esi + 0x2b0]
mov dword [esi + 0x2ac], eax
jmp 0x444c8a
call edi
mov edx, dword [esi + 0x2ac]
mov ecx, dword [esi + 0x298]
sub eax, edx
cmp eax, ecx
mov dword [esi + 0x2b0], eax
jle 0x444c8a
mov dword [esi + 0x2b4], 1
mov dword [esi + 0x2b0], 0
mov ecx, dword [esi + 0x2b0]
push ecx
mov ecx, esi
call fcn.00444b50
mov edi, eax
mov eax, dword [esi + 0x180]
test eax, eax
mov dword [esp + 0x10], edi
je 0x444cd1
mov eax, dword [esi + 0x2c0]
test eax, eax
jne 0x444cd1
lea edx, [esi + 0x2c4]
push edx
push 0
push esi
push 0x444910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c0], eax
test edi, edi
je 0x444d7f
mov eax, dword [esi + 0x1a8]
lea edi, [esi + 0x198]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jne 0x444d7f
mov eax, dword [esi + 0x1a0]
push 0
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x19c]
push eax
mov eax, dword [edi]
push edx
push ebp
push eax
push ecx
call sub.MSVFW32.dll_DrawDibBegin
mov eax, dword [esi + 0x1a0]
push 0
test ebx, ebx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [esp + 0x18]
push ecx
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x34]
push eax
push ebp
je 0x444d51
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [edi]
push ecx
mov ecx, dword [esi + 0x19c]
push edx
push eax
push ecx
jmp 0x444d5f
mov ecx, dword [edi]
mov edx, dword [esi + 0x19c]
push 0
push 0
push ecx
push edx
call sub.MSVFW32.dll_DrawDibDraw
mov eax, dword [esi + 0x19c]
push eax
call sub.MSVFW32.dll_DrawDibEnd
mov esi, dword [esi + 0x1a8]
mov edx, dword [edi]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0x68]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4