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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x794e32
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [esp + 0x30]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x18], edi
call fcn.0054a360
xor esi, esi
lea eax, [esp + 0x30]
mov dword [esp + 0x168], esi
mov ecx, dword [0x88b148]
lea edx, [edi + 4]
push eax
mov dword [esp + 0x30], edx
call fcn.00468e40
test al, al
je 0x5f9b83
lea eax, [esp + 0x30]
call fcn.0054aa50
cmp eax, 0x3dbeef00
jne 0x5f9b83
lea eax, [esp + 0x30]
call fcn.0054aa50
cmp eax, 2
mov dword [esp + 0x5c], eax
jg 0x5f9b83
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
cmp dword [edi + 0x20], esi
je 0x5f915d
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx]
push edi
call eax
lea eax, [esp + 0x30]
call fcn.0054aa20
cwde
cmp eax, esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], esi
jg 0x5f91b2
lea ecx, [esp + 0x30]
call fcn.0054a380
mov al, 1
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret 4
xor esi, esi
lea edi, [esp + 0x120]
lea ecx, [esp + 0x30]
call fcn.0054aa90
lea eax, [esp + 0x30]
mov byte [esp + 0x168], 1
call fcn.0054aa20
cwde
cmp eax, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
jle 0x5f9a24
cmp dword [esp + 0x5c], 1
jle 0x5f91fc
lea esi, [esp + 0x30]
call fcn.0054a950
test al, al
je 0x5f9a11
push 0x74
call fcn.006442a0
add esp, 4
test eax, eax
je 0x5f9213
mov edx, eax
call fcn.005f66f0
jmp 0x5f9215
xor eax, eax
mov esi, dword [esp + 0x18]
mov edi, dword [esi + 0x3c]
mov edx, dword [edi + 4]
add esi, 0x28
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
mov dword [esp + 0x28], eax
call fcn.004651d0
mov ecx, esi
mov ebx, eax
call fcn.005fd1a0
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov edi, dword [esi + 0x14]
mov esi, dword [esi]
test esi, esi
jne 0x5f9251
call fcn.006441b7
mov edi, dword [edi + 4]
xor ebx, ebx
cmp esi, ebx
je 0x5f925e
mov eax, dword [esi]
jmp 0x5f9260
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x5f926a
call fcn.006441b7
cmp esi, ebx
jne 0x5f9585
call fcn.006441b7
xor esi, esi
cmp edi, dword [esi + 0x14]
jne 0x5f9283
call fcn.006441b7
mov esi, dword [edi + 8]
lea edi, [esp + 0x13c]
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], esi
call fcn.0054aa90
mov eax, 0xf
mov dword [esp + 0x11c], eax
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], 0
mov dword [esp + 0x100], eax
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], 0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x128]
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x174], 4
call fcn.00401530
push 0xffffffffffffffff
push ebx
mov ecx, edi
push ecx
lea ecx, [esi + 0x20]
call fcn.00401530
lea eax, [esp + 0x30]
call fcn.0054aa20
cwde
cmp eax, ebx
jle 0x5f949f
mov dword [esp + 0x14], eax
lea ebx, [ebx]
lea edi, [esp + 0xcc]
lea ecx, [esp + 0x30]
call fcn.0054aa90
lea edi, [esp + 0xb0]
lea ecx, [esp + 0x30]
mov byte [esp + 0x168], 5
call fcn.0054aa90
mov edx, dword [esp + 0x18]
mov byte [esp + 0x168], 6
cmp dword [edx + 0x20], ebx
je 0x5f936f
push edi
lea edi, [esp + 0xd0]
push edi
mov eax, edx
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
lea edi, [esp + 0x144]
push edi
lea edi, [esp + 0x12c]
push edi
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0xe0]
mov ecx, edi
cmp edi, 0x11
jb 0x5f9382
mov ecx, 0x11
cmp dword [esp + 0xe4], 0x10
mov eax, dword [esp + 0xd0]
jae 0x5f939a
lea eax, [esp + 0xd0]
push ecx
push str.texture0.fileName
push eax
call fcn.00401d90
add esp, 0xc
cmp eax, ebx
jne 0x5f93dc
cmp edi, 0x11
jb 0x5f93dc
xor eax, eax
cmp edi, 0x11
setne al
cmp eax, ebx
jne 0x5f93dc
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x110]
call fcn.00401530
mov edi, dword [esp + 0xe0]
mov ecx, edi
cmp edi, 0xd
jb 0x5f93e8
mov ecx, 0xd
cmp dword [esp + 0xe4], 0x10
mov eax, dword [esp + 0xd0]
jae 0x5f9400
lea eax, [esp + 0xd0]
push ecx
push str.bump.fileName
push eax
call fcn.00401d90
add esp, 0xc
cmp eax, ebx
jne 0x5f943b
cmp edi, 0xd
jb 0x5f943b
xor eax, eax
cmp edi, 0xd
setne al
cmp eax, ebx
jne 0x5f943b
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0xf4]
call fcn.00401530
mov edi, 0x10
cmp dword [esp + 0xc8], edi
jb 0x5f9459
mov eax, dword [esp + 0xb4]
push eax
call fcn.006441c7
add esp, 4
mov byte [esp + 0x168], 4
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], 0
cmp dword [esp + 0xe4], edi
jb 0x5f9494
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.006441c7
add esp, 4
sub dword [esp + 0x14], 1
jne 0x5f9310
cmp dword [esp + 0x118], ebx
jbe 0x5f96d5
lea eax, [esi + 0x3c]
push ebx
mov dword [esp + 0x18], eax
call fcn.00466440
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x20], ebx
je 0x5f958c
push 0x11
push str.texture0.fileName
lea ecx, [esp + 0xb8]
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
call fcn.004016e0
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x104]
push edi
lea edi, [esp + 0xb4]
push edi
lea edi, [esp + 0x144]
push edi
mov bl, 7
mov byte [esp + 0x174], bl
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea edi, [esp + 0x12c]
push edi
push eax
lea eax, [esp + 0x94]
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x168], 8
call fcn.00466400
lea ecx, [esp + 0x80]
mov byte [esp + 0x168], bl
call fcn.004663a0
mov ebx, 0x10
mov byte [esp + 0x168], 4
cmp dword [esp + 0xc8], ebx
jb 0x5f9591
mov eax, dword [esp + 0xb4]
push eax
call fcn.006441c7
add esp, 4
jmp 0x5f9591
mov esi, dword [esi]
jmp 0x5f9279
mov ebx, 0x10
mov ecx, dword [esp + 0x14]
call fcn.00466460
xor edi, edi
test eax, eax
jne 0x5f96b6
push edi
push 0x81d304
lea ecx, [esp + 0xb8]
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], edi
mov byte [esp + 0xbc], al
call fcn.004016e0
mov ecx, dword [esp + 0x2c]
push ecx
xor al, al
lea esi, [esp + 0x68]
mov byte [esp + 0x16c], 9
call fcn.00439610
add esp, 4
lea edx, [esp + 0x104]
lea esi, [esp + 0xcc]
mov byte [esp + 0x168], 0xa
call fcn.004394f0
push 1
push edi
mov byte [esp + 0x170], 0xb
mov ecx, dword [0x88b148]
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
lea esi, [esp + 0xb8]
push esi
push eax
lea eax, [esp + 0xb4]
push eax
call edx
lea ecx, [esp + 0xa4]
call fcn.004663a0
cmp dword [esp + 0xe4], ebx
jb 0x5f9656
mov eax, dword [esp + 0xd0]
push eax
call fcn.006441c7
add esp, 4
mov esi, 0xf
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], edi
mov byte [esp + 0xd0], 0
cmp dword [esp + 0x7c], ebx
jb 0x5f9684
mov ecx, dword [esp + 0x68]
push ecx
call fcn.006441c7
add esp, 4
mov byte [esp + 0x168], 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], edi
mov byte [esp + 0x68], 0
cmp dword [esp + 0xc8], ebx
jb 0x5f96b2
mov edx, dword [esp + 0xb4]
push edx
call fcn.006441c7
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
call fcn.00466460
test eax, eax
je 0x5f9a62
call fcn.00466460
or dword [eax + 4], 0x81
jmp 0x5f96da
mov ebx, 0x10
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
shr eax, 1
test al, 1
je 0x5f990a
cmp dword [esp + 0xfc], 0
jbe 0x5f990a
add esi, 0x48
push 0
mov eax, esi
mov dword [esp + 0x18], esi
call fcn.00466440
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x20], 0
je 0x5f97cd
push 0xd
push str.bump.fileName
lea ecx, [esp + 0xb8]
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
call fcn.004016e0
lea edx, [esp + 0xe8]
push edx
lea edx, [esp + 0xb4]
push edx
lea edx, [esp + 0x144]
push edx
mov byte [esp + 0x174], 0xc
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0x12c]
push edx
push edi
lea edx, [esp + 0xa0]
push edx
call eax
mov edi, eax
mov eax, esi
mov byte [esp + 0x168], 0xd
call fcn.00466400
lea ecx, [esp + 0x8c]
mov byte [esp + 0x168], 0xc
call fcn.004663a0
mov byte [esp + 0x168], 4
cmp dword [esp + 0xc8], ebx
jb 0x5f97cd
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.006441c7
add esp, 4
mov ecx, esi
call fcn.00466460
mov edi, 0xf
test eax, eax
jne 0x5f98ea
push eax
push 0x81d304
lea ecx, [esp + 0xb8]
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], eax
mov byte [esp + 0xbc], al
call fcn.004016e0
mov edx, dword [esp + 0x2c]
push edx
xor al, al
lea esi, [esp + 0xd0]
mov byte [esp + 0x16c], 0xe
call fcn.00439610
add esp, 4
lea edx, [esp + 0xe8]
lea esi, [esp + 0x64]
mov byte [esp + 0x168], 0xf
call fcn.004394f0
push 1
push 0
mov byte [esp + 0x170], bl
mov ecx, dword [0x88b148]
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
lea esi, [esp + 0xb8]
push esi
push eax
lea eax, [esp + 0xa8]
push eax
call edx
lea ecx, [esp + 0x98]
call fcn.004663a0
cmp dword [esp + 0x7c], ebx
jb 0x5f9889
mov eax, dword [esp + 0x68]
push eax
call fcn.006441c7
add esp, 4
xor esi, esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], esi
mov byte [esp + 0x68], 0
cmp dword [esp + 0xe4], ebx
jb 0x5f98b1
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.006441c7
add esp, 4
mov byte [esp + 0x168], 4
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], esi
mov byte [esp + 0xd0], 0
cmp dword [esp + 0xc8], ebx
jb 0x5f98ec
mov edx, dword [esp + 0xb4]
push edx
call fcn.006441c7
add esp, 4
jmp 0x5f98ec
xor esi, esi
mov ecx, dword [esp + 0x14]
call fcn.00466460
test eax, eax
je 0x5f9abf
call fcn.00466460
or dword [eax + 4], 1
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x30]
call fcn.0054aa20
lea eax, [esp + 0x30]
call fcn.0054aa50
mov dword [esi + 0x54], eax
lea eax, [esp + 0x30]
mov dword [esi + 0x58], 0x24
call fcn.0054aa20
cwde
mov dword [esi + 0x5c], eax
lea eax, [eax + eax*8]
add eax, eax
add eax, eax
push eax
call fcn.0063265d
mov ecx, dword [esi + 0x5c]
lea ebx, [ecx + ecx*8]
add esp, 4
mov dword [esi + 0x64], eax
add ebx, ebx
push eax
add ebx, ebx
lea eax, [esp + 0x34]
call fcn.0054ad30
lea eax, [esp + 0x30]
call fcn.0054aa20
cwde
lea eax, [eax + eax*2]
lea ecx, [eax + eax]
push ecx
mov dword [esi + 0x60], eax
call fcn.0063265d
mov ebx, dword [esi + 0x60]
add esp, 4
mov dword [esi + 0x68], eax
push eax
add ebx, ebx
lea eax, [esp + 0x34]
call fcn.0054ad30
mov esi, 0x10
cmp dword [esp + 0x100], esi
jb 0x5f99a6
mov edx, dword [esp + 0xec]
push edx
call fcn.006441c7
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
cmp dword [esp + 0x11c], esi
jb 0x5f99db
mov eax, dword [esp + 0x108]
push eax
call fcn.006441c7
add esp, 4
mov byte [esp + 0x168], 1
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
cmp dword [esp + 0x154], esi
jb 0x5f9a11
mov ecx, dword [esp + 0x140]
push ecx
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jl 0x5f91e4
mov ebx, 0x10
mov byte [esp + 0x168], 0
cmp dword [esp + 0x138], ebx
jb 0x5f9a4a
mov eax, dword [esp + 0x124]
push eax
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
jl 0x5f91b0
jmp 0x5f9173
cmp dword [esp + 0x100], ebx
jb 0x5f9a7b
mov edx, dword [esp + 0xec]
push edx
call fcn.006441c7
add esp, 4
mov esi, 0xf
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], edi
mov byte [esp + 0xec], 0
cmp dword [esp + 0x11c], ebx
jb 0x5f9aaf
mov eax, dword [esp + 0x108]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], edi
jmp 0x5f9b15
cmp dword [esp + 0x100], ebx
jb 0x5f9ad8
mov edx, dword [esp + 0xec]
push edx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], esi
mov byte [esp + 0xec], 0
cmp dword [esp + 0x11c], ebx
jb 0x5f9b07
mov eax, dword [esp + 0x108]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], esi
mov byte [esp + 0x168], 1
mov byte [esp + 0x108], 0
cmp dword [esp + 0x154], ebx
jb 0x5f9b3e
mov ecx, dword [esp + 0x140]
push ecx
call fcn.006441c7
add esp, 4
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x20], edx
jge 0x5f9a29
cmp dword [esp + 0x138], ebx
jb 0x5f9b65
mov ecx, dword [esp + 0x124]
push ecx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x138], 0xf
mov dword [esp + 0x134], 0
mov byte [esp + 0x124], 0
lea ecx, [esp + 0x30]
call fcn.0054a380
xor al, al
jmp 0x5f917e