Function at 0x5b33d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x79348e
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x10c]
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0xb4], ebp
cmp dword [eax + 0xc70], edi
je 0x5b3474
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x7c], 0x4000
mov eax, dword [ecx + 0xc70]
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x84]
push ecx
push eax
call edx
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x48c]
mov esi, dword [eax + 0x474]
mov ebx, dword [ecx]
add eax, 0x474
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], esi
call fcn.005bb990
mov dword [esp + 0x104], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x54], edi
jmp 0x5b34c0
mov eax, dword [ebp + 4]
mov edi, dword [eax + 0x48c]
add eax, 0x474
mov eax, dword [eax]
test esi, esi
je 0x5b34d8
cmp esi, eax
je 0x5b34dd
call fcn.006441b7
cmp ebx, edi
je 0x5b360f
test esi, esi
jne 0x5b3562
call fcn.006441b7
cmp ebx, dword [esi + 0x18]
jne 0x5b34f8
call fcn.006441b7
mov esi, dword [ebx + 0xc]
push 0
push 0x87e524
push 0x87e504
push 0
push esi
call fcn.007705f3
mov ecx, dword [esi + 0x30]
imul ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 0x14
cmp dword [esi + 0x44], 0
je 0x5b352a
lea edx, [edx + ecx*4]
mov dword [esp + 0x14], edx
test eax, eax
je 0x5b353e
cmp dword [eax + 0xe0], 0
je 0x5b353e
lea edx, [edx + ecx*4]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x5b3550
lea edx, [edx + ecx + 0x400]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x5c], 0
je 0x5b356d
test eax, eax
je 0x5b3566
add edx, 0x400
jmp 0x5b3569
mov esi, dword [esi]
jmp 0x5b34ee
lea edx, [edx + ecx*4]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x60], 0
je 0x5b3579
add edx, ecx
mov dword [esp + 0x14], edx
cmp dword [esi + 0x64], 0
je 0x5b3585
add edx, ecx
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 8]
test eax, eax
je 0x5b35f6
cmp dword [eax + 0xc5c], 0
je 0x5b35f6
mov ecx, dword [eax + 0xc5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
push esi
call eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc5c]
mov edx, dword [ecx]
add dword [esp + 0x14], eax
mov eax, dword [edx + 0x80]
push esi
call eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc5c]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [edx + 0x84]
push esi
call eax
add dword [esp + 0x54], edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x5b35f6
lea ecx, [esp + 0x18]
push ecx
lea ebx, [esp + 0xbc]
call fcn.005bb200
inc dword [eax]
add dword [eax + 4], edi
lea esi, [esp + 0x7c]
call fcn.0046f660
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
jmp 0x5b34c0
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
mov byte [esp + 0x104], 1
mov edx, dword [ebp]
mov eax, dword [edx + 0x98]
mov ecx, ebp
call eax
test al, al
je 0x5b364d
mov esi, str.Recommended
jmp 0x5b3668
mov edx, dword [ebp]
mov eax, dword [edx + 0x94]
mov ecx, ebp
call eax
mov esi, str.Supported
test al, al
jne 0x5b3668
mov esi, str.Unsupported
mov edx, dword [ebp]
mov eax, dword [edx + 0x90]
mov ecx, ebp
call eax
test al, al
mov eax, 0x8257d8
jne 0x5b3683
mov eax, 0x8257dc
push esi
push eax
push str.3D_Mode_is__s__3D_is__s_on_this_system__r_n_r_n
lea esi, [esp + 0x28]
call fcn.00439900
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 2
call fcn.00402720
mov ebx, 0x10
mov byte [esp + 0x104], 1
cmp dword [esp + 0x34], ebx
jb 0x5b36cf
mov ecx, dword [esp + 0x20]
push ecx
call fcn.006441c7
add esp, 4
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc64], 0
je 0x5b3741
cmp byte [eax + 0xc68], 0
je 0x5b36f6
xor edx, edx
cmp byte [eax + 0xc66], dl
setne dl
add edx, 8
mov eax, edx
jmp 0x5b36fb
mov eax, 7
push eax
push str.Direct3D_Version:__d_r_n
lea esi, [esp + 0x24]
call fcn.00439900
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 3
call fcn.00402720
mov byte [esp + 0x104], 1
cmp dword [esp + 0x34], ebx
jb 0x5b3741
mov eax, dword [esp + 0x20]
push eax
call fcn.006441c7
add esp, 4
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x490]
push eax
push str.Num_Images:__d_r_n
lea esi, [esp + 0x24]
call fcn.00439900
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 4
call fcn.00402720
mov byte [esp + 0x104], 1
cmp dword [esp + 0x34], ebx
jb 0x5b3790
mov edx, dword [esp + 0x20]
push edx
call fcn.006441c7
add esp, 4
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x5d0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
push eax
push str.Num_Sounds:__d_r_n
lea esi, [esp + 0x24]
call fcn.00439900
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 5
call fcn.00402720
mov byte [esp + 0x104], 1
cmp dword [esp + 0x34], ebx
jb 0x5b37e6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.006441c7
add esp, 4
mov ecx, dword [esp + 0x58]
shr ecx, 0xa
lea esi, [esp + 0x60]
call fcn.00439440
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104], 6
call fcn.00438d30
mov edi, eax
mov byte [esp + 0x104], 7
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x5c]
lea esi, [esp + 0x38]
shr ecx, 0xa
call fcn.00439440
lea ecx, [esp + 0x7c]
mov byte [esp + 0x104], 8
call fcn.00438d30
mov byte [esp + 0x104], 9
cmp dword [edi + 0x18], ebx
jb 0x5b3848
mov edi, dword [edi + 4]
jmp 0x5b384b
add edi, 4
cmp dword [eax + 0x18], ebx
jb 0x5b3855
mov eax, dword [eax + 4]
jmp 0x5b3858
add eax, 4
push edi
push eax
push str.Video_Memory:__s__s_KB_r_n
lea esi, [esp + 0xa4]
call fcn.00439900
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 0xa
call fcn.00402720
cmp dword [esp + 0xb0], ebx
jb 0x5b38a0
mov edx, dword [esp + 0x9c]
push edx
call fcn.006441c7
add esp, 4
xor edi, edi
mov esi, 0xf
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], edi
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x94], ebx
jb 0x5b38d6
mov eax, dword [esp + 0x80]
push eax
call fcn.006441c7
add esp, 4
cmp dword [esp + 0x50], 8
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
mov byte [esp + 0x80], 0
jb 0x5b3900
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.006441c7
add esp, 4
xor edx, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], dx
cmp dword [esp + 0x34], ebx
jb 0x5b3926
mov eax, dword [esp + 0x20]
push eax
call fcn.006441c7
add esp, 4
mov byte [esp + 0x104], 1
cmp dword [esp + 0x78], 8
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
jb 0x5b394f
mov ecx, dword [esp + 0x64]
push ecx
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0x14]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
lea esi, [esp + 0x60]
call fcn.00439440
lea ecx, [esp + 0x38]
mov byte [esp + 0x104], 0xb
call fcn.00438d30
mov byte [esp + 0x104], 0xc
cmp dword [eax + 0x18], ebx
jb 0x5b398d
mov eax, dword [eax + 4]
jmp 0x5b3990
add eax, 4
push eax
push str.Image_Memory:__s_KB_r_n
lea esi, [esp + 0x24]
call fcn.00439900
add esp, 8
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 0xd
call fcn.00402720
cmp dword [esp + 0x34], ebx
jb 0x5b39cd
mov edx, dword [esp + 0x20]
push edx
call fcn.006441c7
add esp, 4
mov esi, 0xf
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
cmp dword [esp + 0x50], ebx
jb 0x5b39f2
mov eax, dword [esp + 0x3c]
push eax
call fcn.006441c7
add esp, 4
mov byte [esp + 0x104], 1
cmp dword [esp + 0x78], 8
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
jb 0x5b3a1b
mov ecx, dword [esp + 0x64]
push ecx
call fcn.006441c7
add esp, 4
mov edx, dword [ebp + 8]
cmp byte [edx + 0xc64], 0
je 0x5b3eb3
mov eax, dword [esp + 0x54]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
lea esi, [esp + 0x60]
call fcn.00439440
lea ecx, [esp + 0x38]
mov byte [esp + 0x104], 0xe
call fcn.00438d30
mov byte [esp + 0x104], 0xf
cmp dword [eax + 0x18], ebx
jb 0x5b3a69
mov eax, dword [eax + 4]
jmp 0x5b3a6c
add eax, 4
push eax
push str.Texture_Memory:__s_KB_r_n
lea esi, [esp + 0x24]
call fcn.00439900
add esp, 8
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], bl
call fcn.00402720
cmp dword [esp + 0x34], ebx
jb 0x5b3aaa
mov eax, dword [esp + 0x20]
push eax
call fcn.006441c7
add esp, 4
mov edi, 0xf
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov byte [esp + 0x20], 0
cmp dword [esp + 0x50], ebx
jb 0x5b3acf
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.006441c7
add esp, 4
mov byte [esp + 0x104], 1
cmp dword [esp + 0x78], 8
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
jb 0x5b3af8
mov edx, dword [esp + 0x64]
push edx
call fcn.006441c7
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ebx, [esp + 0xbc]
mov dword [esp + 0x1c], 1
call fcn.005bb200
mov edi, dword [eax]
mov eax, dword [eax + 4]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
lea esi, [esp + 0x60]
call fcn.00439440
lea ecx, [esp + 0x38]
mov byte [esp + 0x104], 0x11
call fcn.00438d30
mov ebx, 0x10
mov byte [esp + 0x104], 0x12
cmp dword [eax + 0x18], ebx
jb 0x5b3b55
mov eax, dword [eax + 4]
jmp 0x5b3b58
add eax, 4
push eax
push edi
push str.A8R8G8B8:__d____s_KB_r_n
lea esi, [esp + 0x28]
call fcn.00439900
add esp, 0xc
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 0x13
call fcn.00402720
cmp dword [esp + 0x34], ebx
jb 0x5b3b98
mov ecx, dword [esp + 0x20]
push ecx
call fcn.006441c7
add esp, 4
mov edi, 0xf
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov byte [esp + 0x20], 0
cmp dword [esp + 0x50], ebx
jb 0x5b3bbd
mov edx, dword [esp + 0x3c]
push edx
call fcn.006441c7
add esp, 4
mov byte [esp + 0x104], 1
cmp dword [esp + 0x78], 8
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
jb 0x5b3be6
mov eax, dword [esp + 0x64]
push eax
call fcn.006441c7
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea ebx, [esp + 0xbc]
mov dword [esp + 0x1c], 2
call fcn.005bb200
mov edi, dword [eax]
mov eax, dword [eax + 4]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
lea esi, [esp + 0x60]
call fcn.00439440
lea ecx, [esp + 0x38]
mov byte [esp + 0x104], 0x14
call fcn.00438d30
mov ebx, 0x10
mov byte [esp + 0x104], 0x15
cmp dword [eax + 0x18], ebx
jb 0x5b3c43
mov eax, dword [eax + 4]
jmp 0x5b3c46
add eax, 4
push eax
push edi
push str.A4R4G4B4:__d____s_KB_r_n
lea esi, [esp + 0x28]
call fcn.00439900
add esp, 0xc
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 0x16
call fcn.00402720
cmp dword [esp + 0x34], ebx
jb 0x5b3c86
mov edx, dword [esp + 0x20]
push edx
call fcn.006441c7
add esp, 4
mov edi, 0xf
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov byte [esp + 0x20], 0
cmp dword [esp + 0x50], ebx
jb 0x5b3cab
mov eax, dword [esp + 0x3c]
push eax
call fcn.006441c7
add esp, 4
mov byte [esp + 0x104], 1
cmp dword [esp + 0x78], 8
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
jb 0x5b3cd4
mov ecx, dword [esp + 0x64]
push ecx
call fcn.006441c7
add esp, 4
lea edx, [esp + 0x18]
push edx
lea ebx, [esp + 0xbc]
mov dword [esp + 0x1c], 4
call fcn.005bb200
mov edi, dword [eax]
mov eax, dword [eax + 4]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
lea esi, [esp + 0x60]
call fcn.00439440
lea ecx, [esp + 0x38]
mov byte [esp + 0x104], 0x17
call fcn.00438d30
mov ebp, 0x10
mov byte [esp + 0x104], 0x18
cmp dword [eax + 0x18], ebp
jb 0x5b3d31
mov eax, dword [eax + 4]
jmp 0x5b3d34
add eax, 4
push eax
push edi
push str.R5G6B5:__d____s_KB_r_n
lea esi, [esp + 0x28]
call fcn.00439900
add esp, 0xc
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 0x19
call fcn.00402720
cmp dword [esp + 0x34], ebp
jb 0x5b3d74
mov eax, dword [esp + 0x20]
push eax
call fcn.006441c7
add esp, 4
mov esi, 0xf
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], ebp
jb 0x5b3d98
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x50], esi
mov esi, 8
mov byte [esp + 0x104], 1
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x78], esi
jb 0x5b3dc4
mov edx, dword [esp + 0x64]
push edx
call fcn.006441c7
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ebx, [esp + 0xbc]
mov dword [esp + 0x1c], esi
call fcn.005bb200
mov edi, dword [eax]
mov eax, dword [eax + 4]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
lea esi, [esp + 0x60]
call fcn.00439440
lea ecx, [esp + 0x38]
mov byte [esp + 0x104], 0x1a
call fcn.00438d30
mov ebx, 0x10
mov byte [esp + 0x104], 0x1b
cmp dword [eax + 0x18], ebx
jb 0x5b3e1d
mov eax, dword [eax + 4]
jmp 0x5b3e20
add eax, 4
push eax
push edi
push str.Palette8:__d____s_KB_r_n
lea esi, [esp + 0x28]
call fcn.00439900
add esp, 0xc
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 0x1c
call fcn.00402720
cmp dword [esp + 0x34], ebx
jb 0x5b3e60
mov ecx, dword [esp + 0x20]
push ecx
call fcn.006441c7
add esp, 4
mov edi, 0xf
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov byte [esp + 0x20], 0
cmp dword [esp + 0x50], ebx
jb 0x5b3e85
mov edx, dword [esp + 0x3c]
push edx
call fcn.006441c7
add esp, 4
mov byte [esp + 0x104], 1
cmp dword [esp + 0x78], 8
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
jb 0x5b3eae
mov eax, dword [esp + 0x64]
push eax
call fcn.006441c7
add esp, 4
mov ebx, 0x10
push 0xb
mov edi, 0xf
xor esi, esi
push str.Video_Stats
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], esi
mov byte [esp + 0xa4], 0
call fcn.004016e0
mov ebp, dword [esp + 0xb4]
push esi
lea eax, [esp + 0x9c]
mov byte [esp + 0x108], 0x1d
mov edx, dword [ebp]
mov edx, dword [edx + 0x30]
push eax
lea ecx, [esp + 0xe0]
push ecx
mov ecx, ebp
call edx
cmp dword [esp + 0xb0], ebx
jb 0x5b3f26
mov eax, dword [esp + 0x9c]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
call dword [sym.imp.winmm.dll_timeGetTime]
mov ecx, dword [ebp + 4]
mov dword [ecx + 0x578], eax
mov dword [ecx + 0x57c], esi
cmp dword [esp + 0xf0], ebx
jb 0x5b3f6a
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.006441c7
add esp, 4
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], esi
mov byte [esp + 0xe0], 0
mov dword [esp + 0x108], 0xffffffff
call fcn.005c4750
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00643db8
add esp, 0xf4
ret 4