Function at 0x4f104f
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x668486
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x6d35d0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x11944]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
mov eax, dword [eax + 0x11948]
mov dword [esp + 0x24], eax
fdiv qword [0x6a1590]
fstp dword [esp + 0x10]
call fcn.004cee12
push eax
call fcn.004fcb30
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x2c0]
mov eax, dword [eax + 0x2c4]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], eax
mov dword [esp], str.sys_black.bmp
call fcn.00404ce0
xor edi, edi
push edi
xor esi, esi
inc esi
push esi
lea ecx, [ebx + 0x180]
push 0x15
lea edx, [esp + 0x6c]
mov dword [esp + 0x94], edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00404660
push 0x690ef8
lea ecx, [esp + 0x64]
call fcn.00404ce0
push edi
push esi
lea ecx, [ebx + 0x354]
push 0x15
lea edx, [esp + 0x6c]
mov dword [esp + 0x94], esi
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00404660
push str.objk000_000.bmp
lea ecx, [esp + 0x64]
call fcn.00404ce0
push edi
push esi
lea ecx, [ebx + 0x9fc]
push 0x15
lea edx, [esp + 0x6c]
mov dword [esp + 0x94], 2
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00404660
push str.sys004.ogg
lea ecx, [esp + 0x64]
call fcn.00404ce0
lea ecx, [esp + 0x60]
lea edi, [ebx + 0x214]
mov dword [esp + 0x88], 3
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00404660
push str.sys001.ogg
lea ecx, [esp + 0x64]
call fcn.00404ce0
lea ecx, [ebx + 0x2b4]
lea edx, [esp + 0x60]
mov dword [esp + 0x88], 4
mov eax, dword [ecx]
push edx
call dword [eax]
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00404660
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov ecx, esi
fdiv qword [0x6a1600]
fstp dword [esp + 0x1c]
call fcn.004765e7
fmul dword [esp + 0x1c]
mov edi, dword [edi]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fmul qword [0x6a1520]
call fcn.00631650
push eax
lea ecx, [ebx + 0x214]
call dword [edi + 0x68]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov ecx, esi
fdiv qword [0x6a1600]
fstp dword [esp + 0x1c]
call fcn.004765e7
fmul dword [esp + 0x1c]
mov edi, dword [ebx + 0x2b4]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fmul qword [0x6a1520]
call fcn.00631650
push eax
lea ecx, [ebx + 0x2b4]
call dword [edi + 0x68]
push str.objk000_002.bmp
lea ecx, [esp + 0x64]
call fcn.00404ce0
push 0
push esi
lea ecx, [ebx + 0x5a8]
push 0x15
lea edx, [esp + 0x6c]
mov dword [esp + 0x94], 5
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
or edi, 0xffffffff
lea ecx, [esp + 0x60]
mov dword [esp + 0x88], edi
call fcn.00404660
push str.objk000_003m.bmp
lea ecx, [esp + 0x64]
call fcn.00404ce0
push 0
push esi
lea ecx, [ebx + 0x3ec]
push 0x15
lea edx, [esp + 0x6c]
mov dword [esp + 0x94], 6
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
lea ecx, [esp + 0x60]
mov dword [esp + 0x88], edi
call fcn.00404660
push str.objk000_003t.bmp
lea ecx, [esp + 0x64]
call fcn.00404ce0
push 0
push esi
lea ecx, [ebx + 0x480]
push 0x15
lea edx, [esp + 0x6c]
mov dword [esp + 0x94], 7
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
lea ecx, [esp + 0x60]
mov dword [esp + 0x88], edi
call fcn.00404660
push str.objk000_003b.bmp
lea ecx, [esp + 0x64]
call fcn.00404ce0
push 0
push esi
lea ecx, [ebx + 0x514]
push 0x15
lea edx, [esp + 0x6c]
mov dword [esp + 0x94], 8
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
lea ecx, [esp + 0x60]
mov dword [esp + 0x88], edi
call fcn.00404660
fld dword [esp + 0x10]
fmul qword [0x6a1fe8]
push str.objk001_000.bmp
lea ecx, [esp + 0x64]
fstp dword [ebx + 0x664]
fld dword [esp + 0x14]
fmul qword [0x6a21c0]
fstp dword [ebx + 0x668]
call fcn.00404ce0
push 0
push esi
lea ecx, [ebx + 0x67c]
push 0x15
lea edx, [esp + 0x6c]
mov dword [esp + 0x94], 9
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
lea ecx, [esp + 0x60]
mov dword [esp + 0x88], edi
call fcn.00404660
xor eax, eax
lea edi, [ebx + 0x698]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
cmp eax, esi
je 0x4f1494
cmp eax, 2
je 0x4f1494
test eax, eax
je 0x4f141b
cmp eax, 3
jne 0x4f14ef
push 4
pop edx
push 3
pop edi
mov ecx, edx
mov dword [esp + 0x38], edx
cdq
idiv edi
push ecx
and dword [esp + 0x38], 0
mov dword [esp + 0x30], 2
imul eax, eax, 0x78
lea edi, [eax + ebx + 0x800]
mov eax, dword [esp + 0x18]
push eax
push 3
pop ecx
push ecx
push eax
push dword [esp + 0x3c]
mov edx, dword [edi]
push eax
xor ecx, ecx
inc ecx
push ecx
push eax
push dword [esp + 0x54]
mov ecx, edi
push eax
push 5
pop eax
push eax
push dword [esp + 0x64]
lea eax, [ebx + 0x67c]
push eax
call dword [edx + 0x84]
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0xc]
mov edi, dword [esp + 0x1c]
jmp 0x4f14eb
push 4
pop ecx
push ecx
push eax
push 3
mov dword [esp + 0x54], ecx
pop ecx
push ecx
push eax
mov edx, dword [edi]
xor ecx, ecx
mov dword [esp + 0x54], 2
push dword [esp + 0x54]
inc ecx
push eax
push ecx
push eax
xor ecx, ecx
push ecx
push eax
push 5
pop eax
push eax
push dword [esp + 0x74]
lea eax, [ebx + 0x67c]
push eax
mov ecx, edi
call dword [edx + 0x84]
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [esp + 0x14]
inc eax
add edi, 0x78
cmp eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
jl 0x4f13fd
fld dword [esp + 0x10]
fmul qword [0x6a1870]
call fcn.00631650
fld dword [esp + 0x10]
fmul qword [0x6a24e8]
mov edi, eax
call fcn.00631650
lea ecx, [ebx + 0x800]
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0x2c]
fld dword [esp + 0x10]
fmul qword [0x6a24e0]
call fcn.00631650
lea esi, [ebx + 0x710]
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0x2c]
fld dword [esp + 0x10]
fmul qword [0x6a24d8]
call fcn.00631650
lea ecx, [ebx + 0x788]
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0x2c]
fld dword [esp + 0x10]
fmul qword [0x6a1fd8]
call fcn.00631650
lea ecx, [ebx + 0x878]
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0x2c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 2
jmp 0x4f1599
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax]
add eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
mov dword [esp + 0x60], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x24]
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x34]
fild dword [eax]
fmul dword [esp + 0x10]
call fcn.00631650
lea ecx, [esp + 0x30]
mov edi, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax]
add eax, edi
add eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x34]
fild dword [eax + 4]
fmul dword [esp + 0x10]
call fcn.00631650
lea ecx, [esp + 0x50]
mov edi, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x14]
add eax, edi
add eax, dword [esp + 0x24]
sub esp, 0x10
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
mov edi, esp
lea esi, [esp + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x38]
add dword [esp + 0x14], 0x78
dec dword [esp + 0x1c]
jne 0x4f1595
lea esi, [ebx + 0x800]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 2
jmp 0x4f1667
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax]
add eax, dword [esp + 0x20]
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
mov dword [esp + 0x64], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x34]
fild dword [eax]
fmul dword [esp + 0x10]
call fcn.00631650
lea ecx, [esp + 0x38]
mov edi, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax]
add eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
add eax, edi
mov dword [esp + 0x68], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x34]
fild dword [eax + 4]
fmul dword [esp + 0x10]
call fcn.00631650
lea ecx, [esp + 0x28]
mov edi, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x6c], eax
mov eax, dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x38]
add dword [esp + 0x14], 0x78
dec dword [esp + 0x1c]
jne 0x4f1663
push str.objk000_001.bmp
lea ecx, [esp + 0x64]
call fcn.00404ce0
push 0
xor esi, esi
inc esi
push esi
push 0x15
lea ecx, [esp + 0x6c]
lea edi, [ebx + 0x8f0]
mov dword [esp + 0x94], 0xa
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x140]
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.00404660
xor eax, eax
mov dword [esp + 0x4c], 4
push dword [esp + 0x4c]
xor ecx, ecx
push eax
push 3
pop eax
push eax
push ecx
push 2
pop eax
push eax
xor eax, eax
push eax
inc eax
push eax
xor eax, eax
push eax
push ecx
push eax
push 5
pop eax
push eax
mov dword [esp + 0x64], esi
push dword [esp + 0x64]
lea esi, [ebx + 0x984]
mov edx, dword [esi]
mov dword [esp + 0x74], ecx
push edi
mov ecx, esi
call dword [edx + 0x84]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xc]
fld dword [esp + 0x10]
fmul qword [0x6a24d0]
call fcn.00631650
fld dword [esp + 0x10]
fmul qword [0x6a1d80]
mov edi, eax
call fcn.00631650
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax]
add eax, dword [esp + 0x20]
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x24]
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x34]
fild dword [eax]
fmul dword [esp + 0x10]
call fcn.00631650
lea ecx, [esp + 0x48]
mov edi, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax]
add eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
add eax, edi
mov dword [esp + 0x68], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x34]
fild dword [eax + 4]
fmul dword [esp + 0x10]
call fcn.00631650
lea ecx, [esp + 0x58]
mov edi, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [eax + 4]
add eax, edi
add eax, dword [esp + 0x24]
sub esp, 0x10
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
mov edi, esp
lea esi, [esp + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x984]
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
push eax
add ebx, 0x158
mov edx, dword [ebx]
push eax
push eax
mov ecx, ebx
call dword [edx]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret