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

Disassembly:
sub esp, 0x80
push ebp
mov ebp, dword [esp + 0x88]
push edi
mov edi, dword [esp + 0x94]
cmp edi, 0xa
jae 0x5b0e99
pop edi
mov eax, 0xffffffec
pop ebp
add esp, 0x80
ret
mov eax, dword [esp + 0x90]
lea edx, [eax + ebp]
movzx eax, word [ecx]
mov dword [esp + 0x20], edx
movzx edx, word [ecx + 2]
add ecx, 6
mov dword [esp + 0x2c], ecx
push ebx
movzx ebx, dx
movzx edx, word [ecx - 2]
add ecx, eax
mov dword [esp + 0x34], ecx
add ecx, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x94]
add ecx, 3
sub edi, edx
shr ecx, 2
mov dword [esp + 0x38], edx
lea edx, [ecx + ebp]
mov dword [esp + 0x28], edx
add edx, ecx
add ecx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi]
sub edi, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
shr ecx, 0x10
sub edi, eax
mov dword [esp + 0x1c], edx
movzx edx, cl
sub edi, 6
mov dword [esp + 0xc], edx
cmp edi, dword [esp + 0x98]
ja 0x5b11e3
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x78]
push ecx
call fcn.005afae0
add esp, 4
cmp eax, 0xffffff88
ja 0x5b18e8
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x38]
mov eax, ebx
call fcn.005afae0
add esp, 4
cmp eax, 0xffffff88
ja 0x5b18e8
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x50]
push eax
mov eax, ebx
call fcn.005afae0
add esp, 4
cmp eax, 0xffffff88
ja 0x5b18e8
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
lea edx, [ecx + ebx]
mov eax, edi
call fcn.005afae0
add esp, 4
cmp eax, 0xffffff88
ja 0x5b18e8
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
add edi, 0xfffffffd
call fcn.005b25c0
lea ecx, [esp + 0x50]
mov ebx, eax
call fcn.005b25c0
lea ecx, [esp + 0x64]
or ebx, eax
call fcn.005b25c0
lea ecx, [esp + 0x78]
or ebx, eax
call fcn.005b25c0
or ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
cmp dword [esp + 0x18], edi
sbb ecx, ecx
neg ecx
test ecx, ebx
je 0x5b11c7
mov edi, dword [esp + 0xc]
neg edi
and edi, 0x1f
lea esp, [esp]
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov ecx, ebx
and ecx, 0x1f
mov eax, edx
shl eax, cl
mov ecx, edi
shr eax, cl
movzx ecx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add ebx, ecx
mov ecx, dword [esp + 0x68]
and ecx, 0x1f
add ebp, eax
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x64]
mov eax, ebx
shl eax, cl
mov ecx, edi
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x10]
shr eax, cl
movzx ecx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
add dword [esp + 0x68], ecx
movzx eax, byte [esi + eax*4 + 7]
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x14]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
movzx ecx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
add dword [esp + 0x54], ecx
movzx eax, byte [esi + eax*4 + 7]
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
movzx ecx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add dword [esp + 0x40], ecx
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x38]
mov ecx, eax
and ecx, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
movzx ecx, word [esi + edx*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + edx*4 + 6]
movzx edx, byte [esi + edx*4 + 7]
add eax, ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
mov ecx, eax
and ecx, 0x1f
shl ebx, cl
mov ecx, edi
add ebp, edx
shr ebx, cl
mov ecx, dword [esp + 0x10]
mov dx, word [esi + ebx*4 + 4]
mov word [ecx], dx
movzx edx, byte [esi + ebx*4 + 6]
add eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x68], eax
movzx eax, byte [esi + ebx*4 + 7]
add ecx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
mov ecx, eax
and ecx, 0x1f
shl edx, cl
mov ecx, edi
shr edx, cl
mov ecx, dword [esp + 0x14]
mov bx, word [esi + edx*4 + 4]
mov word [ecx], bx
movzx ebx, byte [esi + edx*4 + 6]
movzx edx, byte [esi + edx*4 + 7]
add ecx, edx
mov edx, dword [esp + 0x3c]
add eax, ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov ecx, ebx
and ecx, 0x1f
shl edx, cl
mov ecx, edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
shr edx, cl
movzx ecx, word [esi + edx*4 + 4]
mov word [eax], cx
movzx ecx, byte [esi + edx*4 + 6]
movzx edx, byte [esi + edx*4 + 7]
add ebx, ecx
add eax, edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], eax
call fcn.005b25c0
lea ecx, [esp + 0x50]
mov ebx, eax
call fcn.005b25c0
lea ecx, [esp + 0x64]
or ebx, eax
call fcn.005b25c0
lea ecx, [esp + 0x78]
or ebx, eax
call fcn.005b25c0
or ebx, eax
mov eax, dword [esp + 0x24]
neg ebx
sbb ebx, ebx
add eax, 0xfffffffd
inc ebx
cmp dword [esp + 0x1c], eax
sbb eax, eax
neg eax
test eax, ebx
jne 0x5b0ff0
mov ebx, dword [esp + 0x28]
cmp ebp, ebx
ja 0x5b11e3
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x2c]
ja 0x5b11e3
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x18]
jbe 0x5b11f2
pop ebx
pop edi
mov eax, 0xffffffec
pop ebp
add esp, 0x80
ret
lea ecx, [esp + 0x78]
lea edi, [ebx - 3]
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebp, edi
sbb ecx, ecx
neg ecx
test ecx, eax
je 0x5b1297
mov ebx, dword [esp + 0xc]
neg ebx
and ebx, 0x1f
lea ebx, [ebx]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov ecx, edi
and ecx, 0x1f
mov eax, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
movzx ecx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add edi, ecx
mov ecx, edi
and ecx, 0x1f
shl edx, cl
mov ecx, ebx
add ebp, eax
shr edx, cl
movzx ecx, word [esi + edx*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + edx*4 + 7]
movzx eax, byte [esi + edx*4 + 6]
add edi, eax
add ebp, ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x7c], edi
call fcn.005b25c0
mov edx, eax
mov eax, dword [esp + 0x28]
neg edx
sbb edx, edx
add eax, 0xfffffffd
inc edx
cmp ebp, eax
sbb eax, eax
neg eax
test eax, edx
jne 0x5b1220
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x78]
add ebx, 0xfffffffe
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebx, ebp
sbb ecx, ecx
inc ecx
test ecx, eax
je 0x5b1305
mov edi, dword [esp + 0xc]
neg edi
and edi, 0x1f
lea ebx, [ebx]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ecx, edx
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov cx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
add edx, ecx
mov dword [esp + 0x7c], edx
movzx edx, byte [esi + eax*4 + 7]
lea ecx, [esp + 0x78]
add ebp, edx
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebx, ebp
sbb ecx, ecx
inc ecx
test ecx, eax
jne 0x5b12c0
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
cmp ebp, ebx
ja 0x5b134e
mov eax, dword [esp + 0xc]
neg eax
and eax, 0x1f
mov dword [esp + 0x20], eax
mov edi, edi
mov ecx, edx
and ecx, 0x1f
mov eax, edi
shl eax, cl
mov ecx, dword [esp + 0x20]
shr eax, cl
mov cx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add ebp, eax
add edx, ecx
cmp ebp, ebx
jbe 0x5b1320
mov dword [esp + 0x7c], edx
cmp ebp, dword [esp + 0x28]
jae 0x5b139e
mov ecx, edx
and ecx, 0x1f
shl edi, cl
mov ecx, dword [esp + 0xc]
neg ecx
and ecx, 0x1f
shr edi, cl
mov cl, byte [esi + edi*4 + 4]
mov byte [ebp], cl
cmp byte [esi + edi*4 + 7], 1
jne 0x5b1381
movzx eax, byte [esi + edi*4 + 6]
add edx, eax
mov dword [esp + 0x7c], edx
jmp 0x5b139e
cmp edx, 0x20
jae 0x5b139e
movzx ecx, byte [esi + edi*4 + 6]
add edx, ecx
mov dword [esp + 0x7c], edx
cmp edx, 0x20
jbe 0x5b139e
mov dword [esp + 0x7c], 0x20
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x64]
add edi, 0xfffffffd
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebp, edi
sbb edx, edx
neg edx
test edx, eax
je 0x5b1443
mov ebx, dword [esp + 0xc]
neg ebx
and ebx, 0x1f
mov edi, edi
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ecx, edi
and ecx, 0x1f
mov eax, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
movzx ecx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add edi, ecx
mov ecx, edi
and ecx, 0x1f
shl edx, cl
mov ecx, ebx
add ebp, eax
shr edx, cl
movzx ecx, word [esi + edx*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + edx*4 + 7]
movzx eax, byte [esi + edx*4 + 6]
add edi, eax
add ebp, ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x68], edi
call fcn.005b25c0
mov edx, eax
mov eax, dword [esp + 0x2c]
neg edx
sbb edx, edx
add eax, 0xfffffffd
inc edx
cmp ebp, eax
sbb eax, eax
neg eax
test eax, edx
jne 0x5b13d0
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x64]
add ebx, 0xfffffffe
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebx, ebp
sbb ecx, ecx
inc ecx
test ecx, eax
je 0x5b14b5
mov edi, dword [esp + 0xc]
neg edi
and edi, 0x1f
lea ebx, [ebx]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov ecx, edx
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov cx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
add edx, ecx
mov dword [esp + 0x68], edx
movzx edx, byte [esi + eax*4 + 7]
lea ecx, [esp + 0x64]
add ebp, edx
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebx, ebp
sbb ecx, ecx
inc ecx
test ecx, eax
jne 0x5b1470
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
cmp ebp, ebx
ja 0x5b14fe
mov eax, dword [esp + 0xc]
neg eax
and eax, 0x1f
mov dword [esp + 0x20], eax
mov edi, edi
mov ecx, edx
and ecx, 0x1f
mov eax, edi
shl eax, cl
mov ecx, dword [esp + 0x20]
shr eax, cl
mov cx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add ebp, eax
add edx, ecx
cmp ebp, ebx
jbe 0x5b14d0
mov dword [esp + 0x68], edx
cmp ebp, dword [esp + 0x2c]
jae 0x5b154e
mov ecx, edx
and ecx, 0x1f
shl edi, cl
mov ecx, dword [esp + 0xc]
neg ecx
and ecx, 0x1f
shr edi, cl
mov cl, byte [esi + edi*4 + 4]
mov byte [ebp], cl
cmp byte [esi + edi*4 + 7], 1
jne 0x5b1531
movzx eax, byte [esi + edi*4 + 6]
add edx, eax
mov dword [esp + 0x68], edx
jmp 0x5b154e
cmp edx, 0x20
jae 0x5b154e
movzx ecx, byte [esi + edi*4 + 6]
add edx, ecx
mov dword [esp + 0x68], edx
cmp edx, 0x20
jbe 0x5b154e
mov dword [esp + 0x68], 0x20
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x50]
add edi, 0xfffffffd
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebp, edi
sbb edx, edx
neg edx
test edx, eax
je 0x5b15f3
mov ebx, dword [esp + 0xc]
neg ebx
and ebx, 0x1f
mov edi, edi
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ecx, edi
and ecx, 0x1f
mov eax, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
movzx ecx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add edi, ecx
mov ecx, edi
and ecx, 0x1f
shl edx, cl
mov ecx, ebx
add ebp, eax
shr edx, cl
movzx ecx, word [esi + edx*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + edx*4 + 7]
movzx eax, byte [esi + edx*4 + 6]
add edi, eax
add ebp, ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], edi
call fcn.005b25c0
mov edx, eax
mov eax, dword [esp + 0x18]
neg edx
sbb edx, edx
add eax, 0xfffffffd
inc edx
cmp ebp, eax
sbb eax, eax
neg eax
test eax, edx
jne 0x5b1580
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x50]
add ebx, 0xfffffffe
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebx, ebp
sbb ecx, ecx
inc ecx
test ecx, eax
je 0x5b1665
mov edi, dword [esp + 0xc]
neg edi
and edi, 0x1f
lea ebx, [ebx]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, edx
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov cx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
add edx, ecx
mov dword [esp + 0x54], edx
movzx edx, byte [esi + eax*4 + 7]
lea ecx, [esp + 0x50]
add ebp, edx
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebx, ebp
sbb ecx, ecx
inc ecx
test ecx, eax
jne 0x5b1620
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
cmp ebp, ebx
ja 0x5b16ae
mov eax, dword [esp + 0xc]
neg eax
and eax, 0x1f
mov dword [esp + 0x20], eax
mov edi, edi
mov ecx, edx
and ecx, 0x1f
mov eax, edi
shl eax, cl
mov ecx, dword [esp + 0x20]
shr eax, cl
mov cx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add ebp, eax
add edx, ecx
cmp ebp, ebx
jbe 0x5b1680
mov dword [esp + 0x54], edx
cmp ebp, dword [esp + 0x18]
jae 0x5b16fe
mov ecx, edx
and ecx, 0x1f
shl edi, cl
mov ecx, dword [esp + 0xc]
neg ecx
and ecx, 0x1f
shr edi, cl
mov cl, byte [esi + edi*4 + 4]
mov byte [ebp], cl
cmp byte [esi + edi*4 + 7], 1
jne 0x5b16e1
movzx eax, byte [esi + edi*4 + 6]
add edx, eax
mov dword [esp + 0x54], edx
jmp 0x5b16fe
cmp edx, 0x20
jae 0x5b16fe
movzx ecx, byte [esi + edi*4 + 6]
add edx, ecx
mov dword [esp + 0x54], edx
cmp edx, 0x20
jbe 0x5b16fe
mov dword [esp + 0x54], 0x20
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
call fcn.005b25c0
mov edx, eax
mov eax, dword [esp + 0x24]
neg edx
sbb edx, edx
add eax, 0xfffffffd
inc edx
cmp ebp, eax
sbb eax, eax
neg eax
test eax, edx
je 0x5b17a3
mov ebx, dword [esp + 0xc]
neg ebx
and ebx, 0x1f
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov ecx, edi
and ecx, 0x1f
mov eax, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
movzx ecx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add edi, ecx
mov ecx, edi
and ecx, 0x1f
shl edx, cl
mov ecx, ebx
add ebp, eax
shr edx, cl
movzx ecx, word [esi + edx*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + edx*4 + 7]
movzx eax, byte [esi + edx*4 + 6]
add edi, eax
add ebp, ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], edi
call fcn.005b25c0
mov edx, eax
mov eax, dword [esp + 0x24]
neg edx
sbb edx, edx
add eax, 0xfffffffd
inc edx
cmp ebp, eax
sbb eax, eax
neg eax
test eax, edx
jne 0x5b1730
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
add ebx, 0xfffffffe
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebx, ebp
sbb ecx, ecx
inc ecx
test ecx, eax
je 0x5b1815
mov edi, dword [esp + 0xc]
neg edi
and edi, 0x1f
lea ebx, [ebx]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, edx
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov cx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
add edx, ecx
mov dword [esp + 0x40], edx
movzx edx, byte [esi + eax*4 + 7]
lea ecx, [esp + 0x3c]
add ebp, edx
call fcn.005b25c0
neg eax
sbb eax, eax
inc eax
cmp ebx, ebp
sbb ecx, ecx
inc ecx
test ecx, eax
jne 0x5b17d0
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
cmp ebp, ebx
ja 0x5b185e
mov eax, dword [esp + 0xc]
neg eax
and eax, 0x1f
mov dword [esp + 0x20], eax
mov edi, edi
mov ecx, edx
and ecx, 0x1f
mov eax, edi
shl eax, cl
mov ecx, dword [esp + 0x20]
shr eax, cl
mov cx, word [esi + eax*4 + 4]
mov word [ebp], cx
movzx ecx, byte [esi + eax*4 + 6]
movzx eax, byte [esi + eax*4 + 7]
add ebp, eax
add edx, ecx
cmp ebp, ebx
jbe 0x5b1830
mov dword [esp + 0x40], edx
cmp ebp, dword [esp + 0x24]
jae 0x5b18ae
mov ecx, edx
and ecx, 0x1f
shl edi, cl
mov ecx, dword [esp + 0xc]
neg ecx
and ecx, 0x1f
shr edi, cl
mov cl, byte [esi + edi*4 + 4]
mov byte [ebp], cl
cmp byte [esi + edi*4 + 7], 1
jne 0x5b1891
movzx eax, byte [esi + edi*4 + 6]
add edx, eax
mov dword [esp + 0x40], edx
jmp 0x5b18ae
cmp edx, 0x20
jae 0x5b18ae
movzx ecx, byte [esi + edi*4 + 6]
add edx, ecx
mov dword [esp + 0x40], edx
cmp edx, 0x20
jbe 0x5b18ae
mov dword [esp + 0x40], 0x20
lea eax, [esp + 0x3c]
call fcn.005afc10
mov edx, eax
lea eax, [esp + 0x50]
call fcn.005afc10
and edx, eax
lea eax, [esp + 0x64]
call fcn.005afc10
and edx, eax
lea eax, [esp + 0x78]
call fcn.005afc10
test eax, edx
mov eax, 0xffffffec
je 0x5b18e8
mov eax, dword [esp + 0x94]
pop ebx
pop edi
pop ebp
add esp, 0x80
ret