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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10096672
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x100cf288]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x100cf288]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
call fcn.1005ce60
lea ecx, [ebx + 0xe0]
call fcn.1005da40
lea ecx, [ebx + 0x100]
call fcn.1005da40
lea ecx, [ebx + 0x15c]
call fcn.1005db30
lea ecx, [ebx + 0x3cc]
call fcn.1005da40
lea ecx, [ebx + 0x3ec]
call fcn.1005da40
mov ecx, dword [ebx + 0x188]
test ecx, ecx
je 0x1005cf9c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x188], 0
mov al, byte [ebx + 0x52]
test al, al
je 0x1005cfed
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
mov ecx, ebx
mov dword [esp + 0x1c], 0
call dword [eax + 8]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
je 0x1005cfe0
lea eax, [esp + 0x14]
push eax
lea ecx, [ebx + 0x3ec]
call fcn.1005d9c0
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x184], eax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0xc]
mov al, byte [ebx + 0x54]
test al, al
je 0x1005d268
push 9
xor eax, eax
mov dword [esp + 0x1c], 0
push str.fonts.dds
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.1004b000
mov dword [esp + 0xf0], 0
lea eax, [esp + 0x28]
cmp dword [esp + 0x4c], 8
lea ecx, [esp + 0x38]
push eax
cmovae ecx, dword [esp + 0x3c]
lea edx, [esp + 0x1c]
call fcn.1004c440
add esp, 4
test eax, eax
je 0x1005d0be
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x2c]
mov ecx, ebx
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
call dword [eax + 8]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
je 0x1005d096
lea eax, [esp + 0x14]
push eax
lea ecx, [ebx + 0x3ec]
call fcn.1005d9c0
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x1005d0ab
push ecx
call fcn.1000a3a0
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x1005d24a
mov dword [ebx + 0x40c], eax
jmp 0x1005d24a
call fcn.1004ae90
lea eax, [esp + 0x68]
push eax
call fcn.10050800
mov esi, eax
sub esp, 8
mov byte [esp + 0xf8], 1
call fcn.10049cb0
mov ecx, eax
call fcn.10054d80
add esp, 4
lea ecx, [esp + 0x84]
mov edx, eax
call fcn.10053880
add esp, 4
push esi
mov edx, eax
mov byte [esp + 0xf4], 2
lea ecx, [esp + 0x9c]
call fcn.1004dab0
mov edx, eax
mov byte [esp + 0xf4], 3
lea ecx, [esp + 0x54]
call fcn.10053930
add esp, 4
push str.fonts.dds
mov edx, eax
mov byte [esp + 0xf4], 4
lea ecx, [esp + 0xb4]
call fcn.1004bea0
add esp, 4
cmp dword [esp + 0x64], 8
jb 0x1005d158
push dword [esp + 0x50]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
cmp dword [esp + 0xac], 8
jb 0x1005d188
push dword [esp + 0x98]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
cmp dword [esp + 0x94], 8
jb 0x1005d1c1
push dword [esp + 0x80]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
mov byte [esp + 0xf0], 9
cmp dword [esp + 0x7c], 8
jb 0x1005d1fc
push dword [esp + 0x68]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
mov word [esp + 0x68], ax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xb4]
mov dword [esp + 0x7c], 0
push eax
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], 1
call fcn.1005ccc0
add esp, 8
cmp dword [esp + 0xc4], 8
jb 0x1005d24a
push dword [esp + 0xb0]
call fcn.1000a3a0
add esp, 4
mov dword [esp + 0xf0], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x1005d268
push dword [esp + 0x38]
call fcn.1000a3a0
add esp, 4
mov eax, dword [0x100daa00]
mov esi, dword [eax]
cmp esi, eax
je 0x1005d4d1
jmp 0x1005d280
xor eax, eax
mov dword [esp + 0x64], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x58], ax
lea ecx, [esp + 0x58]
lea eax, [esi + 0x54]
mov dword [esp + 0x68], 0
push eax
call fcn.1004b130
mov dword [esp + 0xf0], 0xa
lea ecx, [esp + 0x38]
push 0xa
xor eax, eax
mov dword [esp + 0x50], 7
push str.mytextures
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.1004b000
push 0xa
push 0
lea eax, [esp + 0x70]
mov byte [esp + 0xf8], 0xb
push eax
lea ecx, [esp + 0x5c]
call fcn.10051620
cmp dword [esp + 0x4c], 8
lea edx, [esp + 0x38]
mov ecx, eax
cmovae edx, dword [esp + 0x38]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x28], eax
jb 0x1005d312
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x48]
cmp eax, ebx
mov edi, ebx
cmovb edi, eax
test edi, edi
jne 0x1005d334
xor eax, eax
test eax, eax
jne 0x1005d35c
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jae 0x1005d353
or eax, 0xffffffff
jmp 0x1005d35a
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x1005d345
add ecx, 2
add edx, 2
dec edi
jmp 0x1005d31f
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x1005d323
xor eax, eax
cmp ecx, ebx
setne al
test eax, eax
sete bl
cmp dword [esp + 0x7c], 8
jb 0x1005d372
push dword [esp + 0x68]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov byte [esp + 0xf0], 0xa
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
jb 0x1005d3a4
push dword [esp + 0x38]
call fcn.1000a3a0
add esp, 4
test bl, bl
je 0x1005d463
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], 0
cmovae ecx, dword [esp + 0x50]
lea edx, [esp + 0x18]
push eax
call fcn.1004c440
mov ebx, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x1005d467
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x30]
mov ecx, ebx
mov dword [esp + 0x1c], 0
push dword [esp + 0x20]
call dword [eax + 8]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
je 0x1005d420
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x3ec]
call fcn.1005d9c0
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x1005d435
push ecx
call fcn.1000a3a0
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x1005d467
lea eax, [esp + 0x50]
push eax
call fcn.1005cb70
mov dword [esp + 0x20], eax
test eax, eax
je 0x1005d467
lea eax, [esp + 0x20]
push eax
lea ecx, [ebx + 0x3cc]
call fcn.1005d9c0
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x1005d467
mov ebx, dword [esp + 0x1c]
cmp byte [esi + 0xd], 0
jne 0x1005d4a7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1005d48c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1005d4a7
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x1005d480
jmp 0x1005d4a7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1005d4a5
cmp esi, dword [eax + 8]
jne 0x1005d4a5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1005d495
mov esi, eax
mov dword [esp + 0xf0], 0xffffffff
cmp dword [esp + 0x64], 8
jb 0x1005d4c5
push dword [esp + 0x50]
call fcn.1000a3a0
add esp, 4
cmp esi, dword [0x100daa00]
jne 0x1005d280
cmp dword [0x100daa24], 0
jne 0x1005d512
push 0x30
call fcn.10062ca1
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xf0], 0xc
test eax, eax
je 0x1005d500
mov ecx, eax
call fcn.1004ff50
jmp 0x1005d502
xor eax, eax
mov dword [esp + 0xf0], 0xffffffff
mov dword [0x100daa24], eax
lea eax, [esp + 0x50]
push eax
call fcn.10050800
mov esi, eax
mov dword [esp + 0xf0], 0xd
mov eax, dword [0x100daa5c]
test eax, eax
jne 0x1005d567
push 0xd4
call fcn.10062ca1
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xf0], 0xe
test eax, eax
je 0x1005d558
mov ecx, eax
call fcn.10054600
jmp 0x1005d55a
xor eax, eax
mov byte [esp + 0xf0], 0xd
mov dword [0x100daa5c], eax
sub esp, 8
mov ecx, eax
call fcn.10054d80
add esp, 4
lea ecx, [esp + 0x9c]
mov edx, eax
call fcn.10053880
add esp, 4
push esi
mov edx, eax
mov byte [esp + 0xf4], 0xf
lea ecx, [esp + 0x84]
call fcn.1004dab0
mov edx, eax
mov byte [esp + 0xf4], 0x10
lea ecx, [esp + 0x6c]
call fcn.10053930
add esp, 4
push str.mytextures
mov edx, eax
mov byte [esp + 0xf4], 0x11
lea ecx, [esp + 0xcc]
call fcn.1004bea0
add esp, 4
cmp dword [esp + 0x7c], 8
jb 0x1005d5e3
push dword [esp + 0x68]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
cmp dword [esp + 0x94], 8
jb 0x1005d613
push dword [esp + 0x80]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
cmp dword [esp + 0xac], 8
jb 0x1005d64c
push dword [esp + 0x98]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
mov byte [esp + 0xf0], 0x16
cmp dword [esp + 0x64], 8
jb 0x1005d687
push dword [esp + 0x50]
call fcn.1000a3a0
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
push 3
push 0x100c6800
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], al
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], eax
mov word [esp + 0x40], ax
call fcn.1004b000
mov byte [esp + 0xf0], 0x17
cmp dword [0x100daa24], 0
jne 0x1005d70a
push 0x30
call fcn.10062ca1
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xf0], 0x18
test eax, eax
je 0x1005d6fb
mov ecx, eax
call fcn.1004ff50
jmp 0x1005d6fd
xor eax, eax
mov byte [esp + 0xf0], 0x17
mov dword [0x100daa24], eax
sub esp, 8
lea eax, [esp + 0x38]
push eax
push ecx
push fcn.1005ccc0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.10050f30
cmp dword [esp + 0x4c], 8
jb 0x1005d73d
push dword [esp + 0x38]
call fcn.1000a3a0
add esp, 4
cmp dword [esp + 0xdc], 8
jb 0x1005d756
push dword [esp + 0xc8]
call fcn.1000a3a0
add esp, 4
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.1006249d
mov esp, ebp
pop ebp
ret