Function at 0x5ef880
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x37c]
test eax, eax
jle 0x5ef89b
call fcn.005ec520
movsx eax, word [ebp + 0x136]
movsx ecx, word [ebp + 0x124]
movsx ebx, word [ebp + 0x122]
movsx edi, word [ebp + 0x138]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x338]
add ebx, 5
lea edx, [ecx + ecx + 0xc]
test eax, eax
mov dword [esp + 0x14], edx
je 0x5ef8d9
mov eax, edx
add eax, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x110]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov al, byte [esp + 0xc4]
mov dword [0x7912e4], 1
mov byte [ebp + 0x144], al
mov eax, dword [ebp + 0x110]
mov dword [esp + 0x4c], ecx
xor ecx, ecx
cmp word [eax + 0xa230], cx
mov dword [esp + 0x60], edx
jle 0x5ef937
xor edx, edx
mov byte [edx + eax + 0xd9], 0
mov eax, dword [ebp + 0x110]
inc ecx
add edx, 0x1b4
movsx esi, word [eax + 0xa230]
cmp ecx, esi
jl 0x5ef917
mov eax, dword [ebp + 0x10c]
mov ecx, dword [eax + 0x128]
mov eax, dword [eax + 0x12c]
mov dword [esp + 0x7c], ecx
mov dword [0x7912b8], ecx
mov dword [0x7912bc], eax
mov ecx, dword [ebp + 0x358]
mov dword [0x75f678], ecx
mov ecx, dword [ebp + 0x358]
mov dword [esp + 0x78], eax
call fcn.005f5b00
mov edx, dword [ebp + 0x10c]
mov ecx, dword [esp + 0x14]
add ebx, 8
sub edi, 8
mov eax, dword [edx + 0x88]
add ecx, 0xc
test eax, eax
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x80], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
je 0x5ef9bf
mov eax, dword [ebp + 0x110]
mov dword [esp + 0x70], 0
mov cl, byte [eax + 0xa255]
test cl, cl
je 0x5ef9c7
mov dword [esp + 0x70], 1
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x28], esi
jle 0x5f0262
jmp 0x5ef9df
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
mov edx, esi
and edx, 3
mov dword [esp + 0x20], ecx
cmp dl, 3
mov dword [esp + 0x18], edi
jne 0x5efa04
mov ecx, dword [0x68ca24]
test ecx, ecx
je 0x5efa04
call fcn.00491e90
mov edi, esi
and edi, 1
cmp edi, 1
mov dword [esp + 0x48], edi
jne 0x5efa25
mov eax, dword [ebp + 0x2ec]
test eax, eax
je 0x5efa25
push 0
mov ecx, ebp
call fcn.005ed100
test ebx, ebx
mov dword [esp + 0x74], 0
jle 0x5f023b
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x5f0207
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x5f0207
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x5f01fc
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jge 0x5f01fc
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [0x68ca18], eax
mov dword [0x68ca1c], edx
mov ecx, dword [ebp + 0x110]
mov edi, edx
mov ebx, dword [ebp + 0xf8]
mov esi, dword [ecx + 0xa214]
shl edi, 5
mov esi, dword [esi + eax*4]
mov eax, dword [ebp + 0xfc]
add esi, edi
movsx edi, word [esi]
sub edi, ebx
movsx ebx, word [esi + 2]
sub ebx, eax
mov dword [esp + 0x3c], edi
movsx eax, word [ebp + 0x114]
add eax, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], eax
xor eax, eax
mov al, byte [esi + 4]
lea eax, [eax + eax*2]
movsx eax, word [ecx + eax*2 + 0x1a]
add eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax*4 + 0x791334]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x78]
test edx, eax
je 0x5efaf4
mov byte [esp + 0x1c], 0xf
xor edx, edx
jmp 0x5efb26
mov edx, dword [esp + 0x7c]
test edx, eax
jne 0x5efb12
mov eax, dword [esp + 0x70]
xor edx, edx
cmp eax, edx
jne 0x5efb14
mov byte [esp + 0x1c], dl
mov byte [esi + 7], dl
jmp 0x5f0139
xor edx, edx
mov al, byte [ecx + 0xa256]
neg al
sbb al, al
and al, 0x71
add al, 0xf
mov byte [esp + 0x1c], al
cmp edi, dword [ebp + 0x98]
jg 0x5f0139
cmp ebx, dword [ebp + 0x9c]
jg 0x5f0139
mov eax, dword [esp + 0x38]
cmp eax, dword [ebp + 0x90]
jle 0x5f0139
mov eax, dword [esp + 0x34]
cmp eax, dword [ebp + 0x94]
jle 0x5f0139
mov al, byte [esi + 5]
cmp dword [ebp + 0x104], edx
mov byte [esp + 0x58], al
je 0x5efb9b
movzx ax, al
cmp ax, word [ecx + 0xa230]
jge 0x5efb9b
mov eax, dword [esp + 0x58]
and eax, 0xff
lea edx, [eax + eax*2]
lea edx, [edx + edx*8]
lea eax, [eax + edx*4]
lea ecx, [ecx + eax*4 + 0xd9]
mov al, byte [ecx]
inc al
xor edx, edx
mov byte [ecx], al
or eax, 0xffffffff
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov al, byte [ebp + 0x146]
mov dword [esp + 0x5c], edx
test al, al
je 0x5efd01
mov al, byte [esp + 0x1c]
mov cl, byte [esi + 7]
cmp cl, al
jne 0x5efd01
cmp al, 0xf
jne 0x5efc20
mov ecx, dword [ebp + 0x110]
mov al, byte [ecx + 0xa256]
test al, al
jne 0x5efbe5
mov dword [esp + 0x2c], edx
jmp 0x5efc0d
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
push 0
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.005f1720
mov dword [esp + 0x2c], eax
xor edx, edx
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov cl, byte [esi + 8]
cmp ecx, eax
jne 0x5efd01
jmp 0x5efc24
cmp al, 0x80
jne 0x5efc69
cmp dword [esp + 0x70], edx
je 0x5efc30
mov dword [esp + 0x30], edx
jmp 0x5efc58
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
push 1
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.005f1720
mov dword [esp + 0x30], eax
xor edx, edx
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov cl, byte [esi + 0xe]
cmp ecx, eax
jne 0x5efd01
cmp dword [ebp + 0x2b4], edx
je 0x5f0139
cmp dword [ebp + 0x2b8], edx
je 0x5efcb5
cmp edi, dword [ebp + 0x2d4]
jg 0x5efcb1
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x2cc]
cmp eax, ecx
jl 0x5efcb1
cmp ebx, dword [ebp + 0x2d8]
jg 0x5efcb1
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x2d0]
cmp ecx, eax
mov dword [esp + 0x5c], 1
jge 0x5efcb5
mov dword [esp + 0x5c], edx
cmp edi, dword [ebp + 0x2c4]
jg 0x5efceb
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x2bc]
cmp eax, ecx
jl 0x5efceb
cmp ebx, dword [ebp + 0x2c8]
jg 0x5efceb
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 0x2c0]
cmp ecx, eax
jl 0x5efceb
mov dword [esp + 0x44], 1
jmp 0x5efd01
cmp dword [esp + 0x5c], edx
je 0x5f0139
mov dword [esp + 0x5c], edx
mov dword [esp + 0x44], 2
mov ecx, dword [ebp + 0x198]
xor eax, eax
mov al, byte [esi + 4]
shl eax, 2
mov edi, dword [ecx + eax]
mov ecx, dword [ebp + 0x19c]
mov ebx, dword [ecx + eax]
mov eax, dword [ebp + 0x110]
mov cl, byte [eax + 0xa256]
test cl, cl
jne 0x5efd2f
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x70], edx
je 0x5efd39
mov dword [esp + 0x30], edx
cmp dword [esp + 0x2c], 0xffffffff
jne 0x5efd77
cmp byte [esp + 0x1c], 0xf
jne 0x5efd6f
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
push 0
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.005f1720
mov dword [esp + 0x2c], eax
jmp 0x5efd77
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
jne 0x5efdb2
mov al, byte [esp + 0x1c]
test al, al
je 0x5efdac
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
push 1
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.005f1720
jmp 0x5efdae
xor eax, eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi + ecx*8]
mov ecx, dword [edi + ecx*8 + 4]
mov dword [esp + 0x88], edx
mov edx, dword [ebx + eax*4]
mov al, byte [esp + 0x1c]
mov dword [esp + 0x38], ecx
cmp al, 0x80
mov dword [esp + 0x34], edx
jne 0x5efde9
mov eax, dword [edi]
mov dword [esp + 0x40], 1
xor ebx, ebx
mov dword [esp + 0x38], eax
jmp 0x5efe06
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x38]
xor ebx, ebx
test ecx, ecx
setne bl
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x5efe21
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], 1
test eax, eax
jne 0x5efe2c
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
je 0x5eff2d
test eax, eax
jne 0x5efe88
mov edx, dword [ebp + 0x9c]
mov eax, dword [ebp + 0x98]
mov ecx, dword [ebp + 0x94]
push edx
mov edx, dword [ebp + 0x90]
push eax
push ecx
mov ecx, dword [ebp + 0x18c]
push edx
call fcn.00530bf0
mov eax, dword [ebp + 0x9c]
mov ecx, dword [ebp + 0x98]
mov edx, dword [ebp + 0x94]
push eax
mov eax, dword [ebp + 0x90]
push ecx
push edx
push eax
jmp 0x5eff1a
cmp eax, 1
jne 0x5efed2
mov ecx, dword [ebp + 0x2c8]
mov edx, dword [ebp + 0x2c4]
mov eax, dword [ebp + 0x2c0]
push ecx
mov ecx, dword [ebp + 0x2bc]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x18c]
call fcn.00530bf0
mov edx, dword [ebp + 0x2c8]
mov eax, dword [ebp + 0x2c4]
mov ecx, dword [ebp + 0x2c0]
push edx
mov edx, dword [ebp + 0x2bc]
push eax
push ecx
push edx
jmp 0x5eff1a
cmp eax, 2
jne 0x5eff29
mov eax, dword [ebp + 0x2d8]
mov ecx, dword [ebp + 0x2d4]
mov edx, dword [ebp + 0x2d0]
push eax
mov eax, dword [ebp + 0x2cc]
push ecx
mov ecx, dword [ebp + 0x18c]
push edx
push eax
call fcn.00530bf0
mov ecx, dword [ebp + 0x2d8]
mov edx, dword [ebp + 0x2d4]
mov eax, dword [ebp + 0x2d0]
push ecx
mov ecx, dword [ebp + 0x2cc]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x190]
call fcn.00530bf0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
test ebx, ebx
je 0x5eff4e
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x88]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x18c]
call fcn.00531300
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5eff70
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x190]
call fcn.00531300
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5effbb
test ebx, ebx
je 0x5eff99
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x18c]
call fcn.00531350
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5effbb
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x190]
call fcn.00531350
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x5f00a7
mov edx, dword [ebp + 0x2d8]
mov eax, dword [ebp + 0x2d4]
mov ecx, dword [ebp + 0x2d0]
push edx
mov edx, dword [ebp + 0x2cc]
push eax
push ecx
mov ecx, dword [ebp + 0x18c]
push edx
call fcn.00530bf0
mov eax, dword [ebp + 0x2d8]
mov ecx, dword [ebp + 0x2d4]
mov edx, dword [ebp + 0x2d0]
push eax
mov eax, dword [ebp + 0x2cc]
push ecx
mov ecx, dword [ebp + 0x190]
push edx
push eax
call fcn.00530bf0
test ebx, ebx
mov dword [esp + 0x6c], 2
je 0x5f0040
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x88]
push ecx
mov ecx, dword [ebp + 0x18c]
push edi
push edx
call fcn.00531300
jmp 0x5f0044
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5f0062
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
push eax
push edi
push ecx
mov ecx, dword [ebp + 0x190]
call fcn.00531300
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5f00ab
test ebx, ebx
je 0x5f0087
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x18c]
push edx
push edi
push eax
call fcn.00531350
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5f00ab
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0x190]
push edi
push edx
call fcn.00531350
jmp 0x5f00ab
mov edi, dword [esp + 0x3c]
mov al, byte [esi + 5]
mov byte [esp + 0x58], al
mov eax, dword [esp + 0x58]
and eax, 0xff
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*4]
mov eax, dword [ebp + 0x110]
mov ax, word [eax + edx*4 + 0x14c]
cmp ax, 0xffff
je 0x5f00dc
mov byte [esp + 0x58], al
mov al, byte [esp + 0x1c]
mov cl, byte [esp + 0x2c]
mov dl, byte [esp + 0x30]
mov byte [esi + 7], al
mov byte [esi + 9], al
mov al, byte [esi + 0xa]
and al, 0xbf
mov byte [esi + 8], cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + 0xa], al
mov eax, dword [esp + 0x40]
mov byte [esi + 0xe], dl
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push ebx
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x68]
push eax
push ecx
push edi
push edx
push esi
mov ecx, ebp
call fcn.005f18c0
mov eax, dword [0x7912e0]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
inc eax
mov dword [0x7912e0], eax
xor edx, edx
cmp esi, edx
je 0x5f0207
mov al, byte [esp + 0x1c]
mov dword [0x75f674], 1
test al, al
jne 0x5f0164
mov ecx, dword [ebp + 0x358]
push 5
push 0
call fcn.005f5430
jmp 0x5f0168
cmp al, 0xf
je 0x5f0172
mov dword [0x75f664], 1
movzx dx, byte [esi + 6]
imul dx, word [ebp + 0x11a]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x358]
push eax
mov eax, dword [ebp + 0x344]
add edx, ebx
push ecx
mov ecx, dword [ebp + 0x110]
push edx
push edi
push eax
push esi
call fcn.00489250
mov ecx, dword [ebp + 0x358]
push 0x28
push 0
call fcn.005f5430
mov dword [0x75f664], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5f01f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x344]
push ecx
push edx
movsx edx, word [ebp + 0x11a]
xor ecx, ecx
mov cl, byte [esi + 6]
imul ecx, edx
add ecx, ebx
push ecx
push edi
push eax
mov eax, dword [ebp + 0x108]
mov ecx, dword [eax + 0x70]
call fcn.00532480
mov dword [0x75f674], 0
jmp 0x5f0207
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x74], ecx
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x80]
inc edi
inc esi
inc eax
mov dword [esp + 0x20], edi
cmp eax, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x74], eax
jl 0x5efa35
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
mov ebx, ecx
cmp edi, 1
je 0x5f0246
dec dword [esp + 0x54]
jmp 0x5f024a
inc dword [esp + 0x10]
mov ecx, dword [0x7912e4]
mov eax, dword [esp + 0x14]
add esi, ecx
cmp esi, eax
mov dword [esp + 0x28], esi
jl 0x5ef9db
mov eax, dword [ebp + 0x2ec]
test eax, eax
je 0x5f027f
push 1
mov ecx, ebp
call fcn.005ed100
mov eax, dword [ebp + 0x2ec]
test eax, eax
jne 0x5f026c
mov ecx, dword [0x68ca24]
mov dword [0x7912e4], 0
test ecx, ecx
je 0x5f0298
call fcn.00491e90
mov esi, dword [esp + 0xc8]
mov eax, dword [ebp + 0x90]
mov edi, dword [esp + 0xcc]
add eax, esi
mov dword [ebp + 0x90], eax
mov ebx, dword [ebp + 0x94]
add ebx, edi
mov dword [ebp + 0x94], ebx
mov edx, dword [ebp + 0x98]
add edx, esi
mov dword [ebp + 0x98], edx
mov ecx, dword [ebp + 0x9c]
add ecx, edi
mov dword [ebp + 0x9c], ecx
mov dword [0x75f674], 1
cmp byte [ebp + 0x16c], 2
jne 0x5f037e
mov edx, dword [ebp + 0x174]
mov eax, dword [ebp + 0x170]
mov ecx, dword [ebp + 0xcc]
push 0
push 0
push 0x27
push 0
sub edx, edi
push 0
push 0
inc edx
push 0
push edx
mov edx, dword [ebp + 0xc8]
sub eax, esi
sub ecx, edi
inc eax
sub edx, esi
inc ecx
push eax
inc edx
push ecx
mov ecx, dword [ebp + 0x358]
push edx
push 0x14
push 4
call fcn.005f5840
mov eax, dword [ebp + 0x174]
mov ecx, dword [ebp + 0x170]
mov edx, dword [ebp + 0xcc]
push 0
push 0xff
push 0x28
push 0
push 0
push 0
sub eax, edi
push 0
push eax
mov eax, dword [ebp + 0xc8]
sub ecx, esi
sub edx, edi
push ecx
mov ecx, dword [ebp + 0x358]
sub eax, esi
push edx
push eax
push 0x14
push 4
call fcn.005f5840
mov ecx, dword [0x6833d0]
mov eax, dword [ecx + 0x1e4]
cmp eax, 1
je 0x5f0399
cmp eax, 6
jle 0x5f03a4
cmp eax, 8
jg 0x5f03a4
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x118]
mov eax, dword [0x6833d0]
cmp dword [eax + 0x1e4], 0x15
jne 0x5f03bd
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x110]
mov eax, dword [ebp + 0x374]
xor ebx, ebx
test eax, eax
je 0x5f0499
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [ebp + 0x374]
mov edi, eax
test esi, esi
je 0x5f0499
mov eax, dword [esi + 4]
test eax, eax
je 0x5f0484
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x5f03fa
mov dword [esi + 0x1c], edi
jmp 0x5f0446
mov eax, dword [esi + 0x18]
cmp eax, 1
je 0x5f0407
cmp eax, 2
jne 0x5f0446
mov eax, edi
sub eax, ecx
mov ecx, dword [esi + 0x20]
cmp eax, ecx
jb 0x5f0446
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
inc ecx
mov dword [esi + 8], ecx
cmp ecx, dword [edx + 0x18]
jl 0x5f0435
mov ecx, dword [esi + 0x18]
mov dword [esi + 8], 0
cmp ecx, 2
jne 0x5f0435
mov ebx, 1
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
sub eax, ecx
add edx, ecx
cmp eax, ecx
mov dword [esi + 0x1c], edx
jae 0x5f0412
mov eax, dword [esi + 0x14]
mov dword [0x75f670], 0xffffffff
mov dword [0x75f66c], eax
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [ebp + 0xfc]
sub eax, edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0xf8]
sub ecx, eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.0052cb90
mov esi, dword [esi]
test esi, esi
jne 0x5f03e3
test ebx, ebx
je 0x5f0499
mov ecx, ebp
call fcn.005f40e0
mov edi, dword [0x68ca14]
mov esi, 0x68
mov eax, dword [esi + edi]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], ebx
jle 0x5f052d
mov dword [esp + 0x10], ebx
mov eax, dword [esi + edi - 0x40]
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + edi - 0x20]
mov edx, dword [0x7912cc]
add eax, ecx
push 0xffffffffffffffff
mov edi, dword [edi + ebx*4]
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
sub ecx, edx
mov edx, dword [eax + 0xc]
sub edx, dword [0x7912cc]
mov eax, dword [eax]
push edi
mov edi, dword [0x7912c8]
push 0xb
push 0
push 0
push 0
push 0
push edx
sub ebx, edi
add edx, ecx
push ebx
sub eax, edi
push ecx
mov ecx, dword [0x75f678]
sar edx, 1
push eax
push edx
push 5
call fcn.005f5840
mov edi, dword [0x68ca14]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
inc ebx
mov eax, dword [esi + edi]
add ecx, 0x10
cmp ebx, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ecx
jl 0x5f04b5
add esi, 4
cmp esi, 0x88
jl 0x5f04a4
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
mov dword [0x75f674], 0
mov ebx, dword [ebp + 0x90]
sub ebx, eax
mov dword [ebp + 0x90], ebx
mov edi, dword [ebp + 0x94]
sub edi, ecx
mov dword [ebp + 0x94], edi
mov esi, dword [ebp + 0x98]
sub esi, eax
xor edi, edi
mov dword [ebp + 0x98], esi
mov edx, dword [ebp + 0x9c]
sub edx, ecx
mov dword [ebp + 0x9c], edx
mov eax, dword [ebp + 0x358]
mov ecx, dword [eax + 0x68]
test ecx, ecx
jle 0x5f05e1
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x5f05d5
mov edx, dword [ebp + 0x358]
mov ecx, dword [eax + 0x10]
mov esi, dword [edx + 0x60]
mov esi, dword [esi + ecx*4]
test esi, esi
jne 0x5f05c0
mov edx, dword [edx + 0x5c]
mov dword [edx + ecx*4], eax
jmp 0x5f05c3
mov dword [esi + 4], eax
mov edx, dword [ebp + 0x358]
mov edx, dword [edx + 0x60]
mov dword [edx + ecx*4], eax
mov eax, dword [eax]
test eax, eax
jne 0x5f05a5
mov eax, dword [ebp + 0x358]
inc edi
cmp edi, dword [eax + 0x68]
jl 0x5f059b
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x5f0637
mov eax, dword [ebp + 0x9c]
mov ecx, dword [ebp + 0x98]
mov edx, dword [ebp + 0x94]
push eax
mov eax, dword [ebp + 0x90]
push ecx
mov ecx, dword [ebp + 0x18c]
push edx
push eax
call fcn.00530bf0
mov ecx, dword [ebp + 0x9c]
mov edx, dword [ebp + 0x98]
mov eax, dword [ebp + 0x94]
push ecx
mov ecx, dword [ebp + 0x90]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x190]
call fcn.00530bf0
mov edx, dword [ebp + 0x108]
mov eax, dword [edx + 0x7c]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx + 0xc]
push edx
call fcn.006319c0
add esp, 4
xor ebx, ebx
mov eax, dword [ebp + 0x358]
mov ecx, dword [eax + 0x5c]
mov esi, dword [ecx + ebx]
test esi, esi
je 0x5f073e
mov al, byte [esi + 0x2c]
test al, al
jne 0x5f0733
mov eax, dword [ebp + 0x18c]
mov edx, dword [eax + 0x64]
mov ecx, dword [eax + 0x5c]
push edx
mov edx, dword [eax + 0x60]
push ecx
mov ecx, dword [eax + 0x58]
push edx
mov edx, dword [eax + 0x40]
mov eax, dword [eax + 0x3c]
push ecx
mov ecx, dword [ebp + 0x344]
push edx
push eax
mov edx, dword [ecx + 0xc0]
push edx
call fcn.00631820
mov eax, dword [esi + 0x28]
push eax
call fcn.00631860
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
and ecx, 0xfffe
mov edx, dword [edi + 4]
mov eax, dword [edi]
push ecx
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x20]
push eax
push ecx
push edx
call fcn.00631bc0
mov eax, dword [ebp + 0x190]
add esp, 0x40
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x5c]
push ecx
mov ecx, dword [eax + 0x60]
push edx
mov edx, dword [eax + 0x58]
push ecx
mov ecx, dword [eax + 0x40]
push edx
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 0x344]
push ecx
push edx
mov ecx, dword [eax + 0xc0]
push ecx
call fcn.00631820
mov edx, dword [esi + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
or edx, 1
push edx
mov edx, dword [edi + 0x14]
push eax
mov eax, dword [edi + 0x10]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0x20]
push ecx
push edx
push eax
call fcn.00631bc0
add esp, 0x3c
mov esi, dword [esi + 4]
test esi, esi
jne 0x5f0665
add ebx, 4
cmp ebx, 0x14
jle 0x5f0651
mov ecx, dword [0x68ca24]
test ecx, ecx
je 0x5f075f
call fcn.00491e90
mov ecx, dword [0x68ca24]
mov edx, dword [0x6833d0]
mov dword [esp + 0x50], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
cmp dword [edx + 0x1e0], 4
jne 0x5f0993
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x5f0993
call fcn.00491140
test eax, eax
je 0x5f0993
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esp + 0xc8]
mov edi, eax
mov eax, dword [esp + 0xcc]
lea edx, [esp + 0x64]
neg eax
neg ecx
push eax
push ecx
push edx
mov ecx, ebp
call fcn.005f23b0
test eax, eax
je 0x5f0993
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x94]
lea ecx, [esp + 0x98]
push eax
mov eax, dword [esp + 0x68]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.005f2560
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x28], eax
xor esi, esi
call ebx
mov ecx, dword [ebp + 0x10c]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x268]
test eax, eax
jle 0x5f08a5
mov ecx, dword [esp + 0x68]
mov edx, dword [ebp]
push 1
push esi
push esi
push esi
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x7c]
push ecx
push eax
mov ecx, ebp
call dword [edx + 0x138]
test eax, eax
je 0x5f085b
mov ecx, dword [eax + 4]
mov esi, 1
mov dword [esp + 0x50], ecx
mov dword [0x791300], esi
jmp 0x5f08dd
mov eax, dword [0x791300]
test eax, eax
je 0x5f08a5
mov edx, dword [ebp + 0x360]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x64]
mov dword [0x67d5c4], edx
mov edx, dword [esp + 0xcc]
add ecx, eax
mov eax, dword [esp + 0x68]
mov dword [0x7912f4], edi
add eax, edx
mov dword [0x7912f8], ecx
mov dword [0x7912fc], eax
mov dword [0x791300], 0
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push 0
lea ecx, [esp + 0xb0]
push 0
push ecx
push edx
push eax
push 2
push 0x29
mov ecx, ebp
call fcn.005facc0
cmp al, 0x34
jne 0x5f08dd
mov ecx, dword [esp + 0xb8]
mov esi, 1
mov edx, dword [ecx + 4]
mov dword [esp + 0x50], edx
call ebx
mov edi, dword [esp + 0x48]
mov ecx, dword [0x6833d0]
sub eax, edi
push eax
push 0x11
call fcn.0041d920
test esi, esi
jne 0x5f091a
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebp + 0x358]
push 0x28
push 0xa
push ecx
push edx
push eax
mov ecx, ebp
call fcn.005f3020
mov esi, eax
lea eax, [esp + 0x8c]
mov ecx, dword [ebp + 0x10c]
push eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0xa4]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x64]
push eax
push esi
call dword [edx + 0xb8]
mov ecx, dword [esp + 0x90]
push ecx
mov ecx, dword [0x68ca24]
call fcn.00491d00
mov edx, dword [esp + 0x8c]
mov dword [ebp + 0x35c], esi
test esi, esi
mov dword [ebp + 0x36c], edx
je 0x5f0989
mov eax, dword [esp + 0x50]
mov dword [ebp + 0x360], eax
jmp 0x5f0993
mov dword [ebp + 0x360], Ordinal_2
mov ebx, dword [ebp + 0x58]
test ebx, ebx
je 0x5f0a66
mov edi, dword [ebx]
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x5f0a5b
mov eax, dword [edi + 0x38]
test eax, eax
je 0x5f0a5b
mov edx, dword [edi]
lea eax, [esp + 0x9c]
push eax
mov ecx, edi
call dword [edx + 0xc8]
mov edx, dword [esp + 0xa0]
mov esi, dword [esp + 0xcc]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xc8]
sub edx, esi
mov esi, dword [esp + 0xa4]
sub eax, ecx
sub esi, ecx
mov ecx, dword [esp + 0xa8]
sub ecx, dword [esp + 0xcc]
test eax, eax
jge 0x5f0a05
xor eax, eax
test edx, edx
jge 0x5f0a0b
xor edx, edx
mov edi, dword [edi + 0xe4]
push 0
push edi
push 0x1e
push 0
push 0
push 0
push 0
push ecx
push esi
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x358]
push 3
call fcn.005f5840
test eax, eax
je 0x5f0a5b
mov ecx, dword [ebp + 0x358]
mov edx, dword [ecx + 0x60]
mov edx, dword [edx + 0x78]
test edx, edx
jne 0x5f0a4c
mov ecx, dword [ecx + 0x5c]
mov dword [ecx + 0x78], eax
jmp 0x5f0a4f
mov dword [edx + 4], eax
mov edx, dword [ebp + 0x358]
mov ecx, dword [edx + 0x60]
mov dword [ecx + 0x78], eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x5f099e
mov al, byte [ebp + 0x146]
test al, al
jne 0x5f0aae
mov eax, dword [ebp + 0x344]
xor esi, esi
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x5f0a9e
mov edx, dword [eax + 0x18]
mov ecx, dword [ebp + 0x194]
dec edx
push esi
push edx
push 0
call fcn.00530cf0
mov eax, dword [ebp + 0x344]
inc esi
cmp esi, dword [eax + 0x1c]
jl 0x5f0a7f
mov ecx, dword [ebp + 0x354]
call fcn.005f5b00
jmp 0x5f0cde
mov eax, dword [ebp + 0x190]
mov ecx, dword [ebp + 0x18c]
push eax
push ecx
mov ecx, dword [ebp + 0x194]
call fcn.005315a0
mov eax, dword [ebp + 0x2b4]
test eax, eax
je 0x5f0b5d
mov eax, dword [ebp + 0x2bc]
test eax, eax
jl 0x5f0b14
mov esi, dword [ebp + 0x2c0]
mov eax, dword [ebp + 0x2c8]
cmp esi, eax
jg 0x5f0b14
mov edx, dword [ebp + 0x2c4]
mov eax, dword [ebp + 0x2bc]
mov ecx, dword [ebp + 0x194]
push esi
push edx
push eax
call fcn.00530cf0
mov eax, dword [ebp + 0x2c8]
inc esi
cmp esi, eax
jle 0x5f0aef
mov eax, dword [ebp + 0x2b8]
test eax, eax
je 0x5f0b5d
mov eax, dword [ebp + 0x2cc]
test eax, eax
jl 0x5f0b5d
mov esi, dword [ebp + 0x2d0]
mov eax, dword [ebp + 0x2d8]
cmp esi, eax
jg 0x5f0b5d
mov ecx, dword [ebp + 0x2d4]
mov edx, dword [ebp + 0x2cc]
push esi
push ecx
mov ecx, dword [ebp + 0x194]
push edx
call fcn.00530cf0
mov eax, dword [ebp + 0x2d8]
inc esi
cmp esi, eax
jle 0x5f0b38
mov eax, dword [ebp + 0x358]
mov dword [esp + 0x14], 0
mov ecx, dword [eax + 0x68]
test ecx, ecx
jle 0x5f0cde
mov eax, dword [eax + 0x58]
mov ecx, dword [esp + 0x14]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x5f0c15
cmp dword [ebx + 0x10], 6
jl 0x5f0c0b
mov edx, dword [ebp + 0x354]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0x58]
mov dl, byte [ebx + 0x2c]
neg dl
mov eax, dword [eax + ecx*4]
sbb edx, edx
and edx, 0x20
add edx, 0x24
test eax, eax
mov dword [esp + 0x10], edx
je 0x5f0bc9
mov ecx, dword [esp + 0x10]
lea edi, [eax + 0xc]
lea esi, [ebx + 0xc]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x5f0bf6
mov eax, dword [eax]
test eax, eax
jne 0x5f0bb3
mov al, byte [ebx + 0x2c]
test al, al
jne 0x5f0bfc
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
shr eax, 1
and eax, 1
push eax
mov eax, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 0x20]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x194]
call fcn.005310b0
jmp 0x5f0c0b
mov byte [eax + 0x2c], 0xff
jmp 0x5f0c0b
mov edx, dword [ebp + 0x194]
mov ecx, ebp
push edx
push ebx
call fcn.005f10e0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x5f0b88
mov eax, dword [ebp + 0x354]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x58]
mov ebx, dword [ecx + edx*4]
test ebx, ebx
je 0x5f0cc4
cmp dword [ebx + 0x10], 6
jl 0x5f0cba
mov cl, byte [ebx + 0x2c]
mov eax, ecx
and eax, 0xff
cmp eax, 0xffffffff
je 0x5f0cba
mov edx, dword [ebp + 0x358]
neg cl
mov eax, dword [edx + 0x58]
mov edx, dword [esp + 0x14]
sbb ecx, ecx
mov eax, dword [eax + edx*4]
and ecx, 0x20
add ecx, 0x24
test eax, eax
mov dword [esp + 0x10], ecx
je 0x5f0c7e
mov ecx, dword [esp + 0x10]
lea edi, [ebx + 0xc]
lea esi, [eax + 0xc]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x5f0cba
mov eax, dword [eax]
test eax, eax
jne 0x5f0c68
mov al, byte [ebx + 0x2c]
test al, al
jne 0x5f0cab
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
shr eax, 1
and eax, 1
push eax
mov eax, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebx + 0x20]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x194]
call fcn.005310b0
jmp 0x5f0cba
mov edx, dword [ebp + 0x194]
mov ecx, ebp
push edx
push ebx
call fcn.005f10e0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x5f0c2d
mov eax, dword [ebp + 0x358]
mov ecx, dword [esp + 0x14]
inc ecx
mov edx, dword [eax + 0x68]
mov dword [esp + 0x14], ecx
cmp ecx, edx
jl 0x5f0b76
mov esi, dword [esp + 0xc8]
mov edi, dword [ebp + 0x90]
add edi, esi
mov dword [ebp + 0x90], edi
mov edi, dword [esp + 0xcc]
mov edx, dword [ebp + 0x94]
add edx, edi
mov dword [ebp + 0x94], edx
mov ecx, dword [ebp + 0x98]
add ecx, esi
mov dword [ebp + 0x98], ecx
mov eax, dword [ebp + 0x9c]
mov ecx, dword [ebp + 0x344]
add eax, edi
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0x194]
mov edx, dword [eax + 0x3c]
lea eax, [ecx + 0x28]
push edx
mov edx, dword [ebp + 0x94]
push eax
mov eax, dword [ebp + 0x90]
push edx
mov edx, dword [ebp + 0x20]
push eax
push edx
call fcn.004668a0
mov ecx, ebp
call fcn.005f1020
mov edx, dword [ebp + 0x90]
sub edx, esi
mov dword [ebp + 0x90], edx
mov ecx, dword [ebp + 0x94]
sub ecx, edi
mov dword [ebp + 0x94], ecx
mov eax, dword [ebp + 0x98]
sub eax, esi
mov dword [ebp + 0x98], eax
mov ebx, dword [ebp + 0x9c]
mov eax, dword [ebp + 0x194]
sub ebx, edi
mov dword [ebp + 0x9c], ebx
mov ecx, dword [eax + 0x64]
mov edx, dword [eax + 0x5c]
push ecx
mov ecx, dword [eax + 0x60]
push edx
mov edx, dword [eax + 0x58]
push ecx
mov ecx, dword [eax + 0x40]
push edx
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 0x34c]
push ecx
push edx
push eax
call fcn.00631820
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x194]
mov dword [ecx + 0xd0], edx
mov eax, dword [0x67d378]
xor ecx, ecx
and eax, 0xff
mov cl, byte [0x67d377]
push eax
push ecx
call fcn.00631940
push 0
push 0
call fcn.00631980
mov eax, 0x18
add esp, 0x2c
mov dword [esp + 0x28], eax
mov edx, dword [ebp + 0x358]
mov ecx, dword [edx + 0x5c]
mov esi, dword [ecx + eax]
test esi, esi
je 0x5f0fba
mov al, byte [esi + 0x2c]
test al, al
jne 0x5f0f9f
mov edi, dword [esi + 0x1c]
mov ebx, 0
and edi, 0xffc
je 0x5f0e79
mov edx, edi
and edx, 4
cmp dl, 4
jne 0x5f0e42
push ebx
push 0xffff00ff
push ebx
push 0xffffff
call fcn.00631780
add esp, 0x10
mov eax, edi
and eax, 8
cmp al, 8
jne 0x5f0e74
sar edi, 4
and edi, 0xff
mov eax, edi
shl eax, 0x10
or eax, edi
mov ecx, eax
shl ecx, 8
push ecx
push 0xff00ff
push eax
push 0xff00ff00
call fcn.00631780
add esp, 0x10
mov ebx, 1
mov edx, dword [esi + 0x28]
push edx
call fcn.00631860
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x1c]
and eax, 3
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push eax
mov eax, dword [edi + 0x14]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x20]
push edx
push eax
push ecx
call fcn.00631bc0
add esp, 0x24
test ebx, ebx
je 0x5f0ec9
push 0
push 0xff00ff00
push 0
push 0xff00ff
call fcn.00631780
add esp, 0x10
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5f0fab
mov eax, dword [ebp + 0x358]
mov edi, dword [edi + 0x1c]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 0x74]
add edi, edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x48], edi
test ecx, ecx
mov dword [esp + 0x54], edx
jle 0x5f0fab
mov ecx, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x40]
call fcn.0052cf00
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push edx
push ecx
push eax
call fcn.006331a0
mov edx, dword [ebp + 0x358]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx + 0x6c]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x5f0f83
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
mov eax, dword [esp + 0x48]
mov edx, dword [ebx + 0x1c]
add edx, ecx
cmp edx, eax
jg 0x5f0f83
mov eax, dword [esp + 0x54]
mov ecx, dword [edi + 0x10]
cmp ecx, eax
jg 0x5f0f83
mov eax, dword [edi + 0x48]
push eax
push eax
call fcn.00631940
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
and ecx, 3
push ecx
mov ecx, dword [ebx + 0x14]
push edx
mov edx, dword [ebx + 0x10]
push eax
mov eax, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0x20]
push eax
push ecx
push edx
call fcn.006331e0
add esp, 0x28
mov ecx, dword [ebp + 0x358]
mov eax, dword [esp + 0x10]
inc eax
mov edx, dword [ecx + 0x74]
mov dword [esp + 0x10], eax
cmp eax, edx
jl 0x5f0f00
jmp 0x5f0fab
mov edx, dword [ebp + 0x20]
mov ecx, ebp
push edx
push esi
call fcn.005f13f0
mov esi, dword [esi + 4]
test esi, esi
jne 0x5f0e09
mov eax, dword [esp + 0x28]
add eax, 4
cmp eax, 0xa0
mov dword [esp + 0x28], eax
jle 0x5f0df5
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00631980
mov ecx, dword [ebp + 0x20]
add esp, 8
push str.view::view_function_terrain
call fcn.00465ad0
mov eax, dword [ebp + 0x20]
pop edi
pop esi
mov ecx, dword [eax + 0xcc]
mov dword [eax + 0xd0], ecx
mov eax, dword [ebp + 0x354]
mov edx, dword [ebp + 0x358]
mov dword [ebp + 0x358], eax
mov dword [ebp + 0x354], edx
pop ebp
xor eax, eax
pop ebx
add esp, 0xb0
ret 0x14